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
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-03-29 10:39:38 +0300
committerGitHub <noreply@github.com>2022-03-29 10:39:38 +0300
commit765999f454c0c5ebd8f2aa693d123f62d104d37a (patch)
treeee986c4dcb0edac3babb7ee87e5afc159087e2e0 /tests/lib/Files/Type/DetectionTest.php
parent4a4f250a2b733f915e8b465bc995ea8ac18a8fbc (diff)
parent6d354595f71f15f3d15bce70683b4bc013a6bfaf (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.php8
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())