diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-03-29 10:39:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 10:39:38 +0300 |
commit | 765999f454c0c5ebd8f2aa693d123f62d104d37a (patch) | |
tree | ee986c4dcb0edac3babb7ee87e5afc159087e2e0 /tests/lib/Files/Type/DetectionTest.php | |
parent | 4a4f250a2b733f915e8b465bc995ea8ac18a8fbc (diff) | |
parent | 6d354595f71f15f3d15bce70683b4bc013a6bfaf (diff) |
Merge pull request #31609 from nextcloud/fix/migrate-away-from-ilogger
Migrate from ILogger to LoggerInterface in lib/private
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()) |