]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #20172 from nextcloud/techdebt/phpunit-short-return
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>
Thu, 26 Mar 2020 08:25:19 +0000 (09:25 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2020 08:25:19 +0000 (09:25 +0100)
Use the shorter phpunit syntax for mocked return values

1  2 
tests/lib/Avatar/UserAvatarTest.php
tests/lib/Files/Stream/EncryptionTest.php
tests/lib/Mail/MessageTest.php
tests/lib/TagsTest.php

index ed0a32dab6fd4f9d44f7b39a39bd785730ce10e3,11bb33a9741842400530da3abc70194733447860..b93c4112af50c95b9bdb80a03672aaa16de526fa
@@@ -68,9 -68,9 +68,9 @@@ class UserAvatarTest extends \Test\Test
                                        return true;
                                }
                                return false;
-                       }));
+                       });
  
 -              $data = NULL;
 +              $data = null;
                $file->method('putContent')
                        ->with($this->callback(function ($d) use (&$data) {
                                $data = $d;
Simple merge
Simple merge