jobList = $this->createMock(IJobList::class);
$this->checkBackupsCodes = new CheckBackupCodes($this->jobList);
}
public function testGetName(): void {
$this->assertSame('Add background job to check for backup codes', $this->checkBackupsCodes->getName());
}
public function testRun(): void {
$this->jobList->expects($this->once())
->method('add')
->with(
$this->equalTo(\OCA\TwoFactorBackupCodes\BackgroundJob\CheckBackupCodes::class)
);
$this->checkBackupsCodes->run($this->createMock(IOutput::class));
}
}
ility'>Temp_Accessibility
blob: 4f4d963a8264fae66bb6b560a029114d9abe4d62 (
plain)