Skip to content

Commit

Permalink
chore: drop usages of deprecated ILogger interface
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Sep 15, 2024
1 parent cb31a87 commit 9590373
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 9590373

Please sign in to comment.