From 29575c4d362570d10a43935fda7e3918a69f47c3 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 8 Dec 2019 22:16:25 +0100 Subject: Move custom definition logic into method Signed-off-by: Daniel Kesselberg --- tests/lib/Files/Type/DetectionTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/lib') 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()) -- cgit v1.2.3