Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-12-09 00:16:25 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-12-09 14:10:19 +0300
commit29575c4d362570d10a43935fda7e3918a69f47c3 (patch)
treea1ae2aa753ae58cdecdbd3c7c7e97ca5dc0cbc94 /tests
parent64aba49461114b986952ece89ea9467618a0ab19 (diff)
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.php5
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())