Skip to content

Commit

Permalink
Merge pull request #10154 from nextcloud/chore/obsolete-ilogger
Browse files Browse the repository at this point in the history
chore: drop usages of deprecated ILogger interface
  • Loading branch information
kesselb authored Sep 15, 2024
2 parents cb31a87 + 9590373 commit 4c151aa
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions tests/Unit/BackgroundJob/SyncJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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));
}
}

0 comments on commit 4c151aa

Please sign in to comment.