From a44dc1b9094ceb023f57653db0f797f24408391c Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 25 Sep 2024 17:14:43 +0200 Subject: [PATCH] chore: Remove reference to ILogger Signed-off-by: Louis Chemineau --- tests/Unit/FileServiceTest.php | 9 +-------- tests/stub.phpstub | 32 -------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) diff --git a/tests/Unit/FileServiceTest.php b/tests/Unit/FileServiceTest.php index 4168fd60..1c066fc8 100644 --- a/tests/Unit/FileServiceTest.php +++ b/tests/Unit/FileServiceTest.php @@ -27,23 +27,16 @@ use OCP\Files\Folder; use OCP\Files\Node; use OCP\Files\Storage\IStorage; -use OCP\ILogger; use Test\TestCase; class FileServiceTest extends TestCase { - - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ - private $logger; - /** @var FileService */ private $fileService; protected function setUp(): void { parent::setUp(); - $this->logger = $this->createMock(ILogger::class); - - $this->fileService = new FileService($this->logger); + $this->fileService = new FileService(); } public function testRevertChangesEmpty(): void { diff --git a/tests/stub.phpstub b/tests/stub.phpstub index 5e7d4929..3dbd0414 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -326,38 +326,6 @@ namespace OCA\DAV\Connector\Sabre { } } -namespace OC\BackgroundJob { - - use OCP\BackgroundJob\IJob; - use OCP\BackgroundJob\IJobList; - use OCP\ILogger; - - abstract class TimedJob implements IJob { - public function execute(IJobList $jobList, ILogger $logger = null) { - } - - abstract protected function run($argument); - - public function setId(int $id) { - } - - public function setLastRun(int $lastRun) { - } - - public function setArgument($argument) { - } - - public function getId() { - } - - public function getLastRun() { - } - - public function getArgument() { - } - } -} - namespace OC\Files\Mount { use OC\Files\Filesystem; use OC\Files\Storage\Storage;