From 9590373767d354016fe4a3f57d91198831cd417e Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Sun, 15 Sep 2024 19:15:05 +0200 Subject: [PATCH] chore: drop usages of deprecated ILogger interface Signed-off-by: Richard Steinmetz --- tests/Unit/BackgroundJob/SyncJobTest.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tests/Unit/BackgroundJob/SyncJobTest.php b/tests/Unit/BackgroundJob/SyncJobTest.php index 34c8fa871d..2eafbddc74 100644 --- a/tests/Unit/BackgroundJob/SyncJobTest.php +++ b/tests/Unit/BackgroundJob/SyncJobTest.php @@ -16,7 +16,6 @@ use OCA\Mail\BackgroundJob\SyncJob; use OCA\Mail\Db\MailAccount; use OCP\AppFramework\Db\DoesNotExistException; -use OCP\ILogger; use OCP\IUser; class SyncJobTest extends TestCase { @@ -69,10 +68,7 @@ public function testAccountDoesntExist(): void { 'accountId' => 123, ]); $this->job->setLastRun(0); - $this->job->execute( - $this->createMock(JobList::class), - $this->createMock(ILogger::class) - ); + $this->job->start($this->createMock(JobList::class)); } public function testNoAuthentication(): void { @@ -106,10 +102,7 @@ public function testNoAuthentication(): void { $this->job->setArgument([ 'accountId' => 123, ]); - $this->job->execute( - $this->createMock(JobList::class), - $this->createMock(ILogger::class) - ); + $this->job->start($this->createMock(JobList::class)); } public function testUserDoesntExist(): void { @@ -145,9 +138,6 @@ public function testUserDoesntExist(): void { $this->job->setArgument([ 'accountId' => 123, ]); - $this->job->execute( - $this->createMock(JobList::class), - $this->createMock(ILogger::class) - ); + $this->job->start($this->createMock(JobList::class)); } }