diff options
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php b/apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php index 136a734aa81..89cd88e05e3 100644 --- a/apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php +++ b/apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php @@ -84,7 +84,7 @@ class BackupCodeMapperTest extends TestCase { $user = $this->getMockBuilder(IUser::class)->getMock(); $user->expects($this->once()) ->method('getUID') - ->will($this->returnValue($this->testUID)); + ->willReturn($this->testUID); $dbCodes = $this->mapper->getBackupCodes($user); @@ -101,7 +101,7 @@ class BackupCodeMapperTest extends TestCase { $user = $this->getMockBuilder(IUser::class)->getMock(); $user->expects($this->any()) ->method('getUID') - ->will($this->returnValue($this->testUID)); + ->willReturn($this->testUID); $this->mapper->insert($code); |