diff options
Diffstat (limited to 'tests/lib/Files/Type/DetectionTest.php')
-rw-r--r-- | tests/lib/Files/Type/DetectionTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php index a7ac6c8057d..568dbb0cf56 100644 --- a/tests/lib/Files/Type/DetectionTest.php +++ b/tests/lib/Files/Type/DetectionTest.php @@ -22,8 +22,8 @@ namespace Test\Files\Type; use OC\Files\Type\Detection; -use OCP\ILogger; use OCP\IURLGenerator; +use Psr\Log\LoggerInterface; class DetectionTest extends \Test\TestCase { /** @var Detection */ @@ -33,7 +33,7 @@ class DetectionTest extends \Test\TestCase { parent::setUp(); $this->detection = new Detection( \OC::$server->getURLGenerator(), - \OC::$server->getLogger(), + \OC::$server->get(LoggerInterface::class), \OC::$SERVERROOT . '/config/', \OC::$SERVERROOT . '/resources/config/' ); @@ -151,8 +151,8 @@ class DetectionTest extends \Test\TestCase { ->disableOriginalConstructor() ->getMock(); - /** @var ILogger $logger */ - $logger = $this->createMock(ILogger::class); + /** @var LoggerInterface $logger */ + $logger = $this->createMock(LoggerInterface::class); //Only call the url generator once $urlGenerator->expects($this->once()) |