diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-12-08 22:16:25 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-12-09 12:10:19 +0100 |
commit | 29575c4d362570d10a43935fda7e3918a69f47c3 (patch) | |
tree | a1ae2aa753ae58cdecdbd3c7c7e97ca5dc0cbc94 /tests | |
parent | 64aba49461114b986952ece89ea9467618a0ab19 (diff) | |
download | nextcloud-server-29575c4d362570d10a43935fda7e3918a69f47c3.tar.gz nextcloud-server-29575c4d362570d10a43935fda7e3918a69f47c3.zip |
Move custom definition logic into method
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Type/DetectionTest.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php index ea812342113..ade4820057a 100644 --- a/tests/lib/Files/Type/DetectionTest.php +++ b/tests/lib/Files/Type/DetectionTest.php @@ -116,9 +116,8 @@ class DetectionTest extends \Test\TestCase { ->disableOriginalConstructor() ->getMock(); - $logger = $this->getMockBuilder(ILogger::class) - ->disableOriginalConstructor() - ->getMock(); + /** @var ILogger $logger */ + $logger = $this->createMock(ILogger::class); //Only call the url generator once $urlGenerator->expects($this->once()) |