From 61f7f13bd81948f6179bb8f70b6711c002ddd70e Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 21 Mar 2022 11:17:14 +0100 Subject: Migrate from ILogger to LoggerInterface where needed in the tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Test/Repair/Owncloud') diff --git a/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php b/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php index a487e021187..8ecef60c35d 100644 --- a/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php +++ b/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php @@ -29,15 +29,15 @@ use OCP\Files\Folder; use OCP\Files\IRootFolder; use OCP\Files\NotFoundException; use OCP\Files\NotPermittedException; -use OCP\ILogger; use OCP\IUserManager; +use Psr\Log\LoggerInterface; use Test\TestCase; class CleanPreviewsBackgroundJobTest extends TestCase { /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */ private $rootFolder; - /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */ + /** @var LoggerInterface|\PHPUnit_Framework_MockObject_MockObject */ private $logger; /** @var IJobList|\PHPUnit_Framework_MockObject_MockObject */ @@ -56,7 +56,7 @@ class CleanPreviewsBackgroundJobTest extends TestCase { parent::setUp(); $this->rootFolder = $this->createMock(IRootFolder::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->jobList = $this->createMock(IJobList::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->userManager = $this->createMock(IUserManager::class); -- cgit v1.2.3