diff options
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php b/apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php index bd0062e826b..141e6d13202 100644 --- a/apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php @@ -68,9 +68,9 @@ class CheckBackupCodeTest extends TestCase { $this->user = $this->createMock(IUser::class); $this->userManager->method('callForSeenUsers') - ->will($this->returnCallback(function(\Closure $e) { + ->willReturnCallback(function(\Closure $e) { $e($this->user); - })); + }); $this->checkBackupCodes = new CheckBackupCodes( $this->createMock(ITimeFactory::class), |