diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-02-08 11:52:40 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-02-08 18:27:44 +0100 |
commit | 303e2febc717065581a3e3bdc92e1672bb8253dc (patch) | |
tree | c8f88c01fa1e7f93958a6b48bee3aa4bf5525dfb /apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php | |
parent | f6ed1effbf4bb040ab35c625159ad80caff5e687 (diff) | |
download | nextcloud-server-303e2febc717065581a3e3bdc92e1672bb8253dc.tar.gz nextcloud-server-303e2febc717065581a3e3bdc92e1672bb8253dc.zip |
Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobs
Diffstat (limited to 'apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php')
-rw-r--r-- | apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php index 81b6118a265..7a7bd83f8c4 100644 --- a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php @@ -33,8 +33,8 @@ use OCA\DAV\CalDAV\WebcalCaching\RefreshWebcalService; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; use OCP\IConfig; -use OCP\ILogger; use PHPUnit\Framework\MockObject\MockObject; +use Psr\Log\LoggerInterface; use Test\TestCase; @@ -46,8 +46,7 @@ class RefreshWebcalJobTest extends TestCase { /** @var IConfig | MockObject */ private $config; - /** @var ILogger | MockObject */ - private $logger; + private LoggerInterface $logger; /** @var ITimeFactory | MockObject */ private $timeFactory; @@ -60,7 +59,7 @@ class RefreshWebcalJobTest extends TestCase { $this->refreshWebcalService = $this->createMock(RefreshWebcalService::class); $this->config = $this->createMock(IConfig::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->jobList = $this->createMock(IJobList::class); @@ -115,7 +114,7 @@ class RefreshWebcalJobTest extends TestCase { ->with('principals/users/testuser', 'sub123'); } - $backgroundJob->execute($this->jobList, $this->logger); + $backgroundJob->start($this->jobList); } /** |