aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php')
-rw-r--r--apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php
index 1465c351bfd..100b70583fe 100644
--- a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php
+++ b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php
@@ -236,4 +236,13 @@ class BackupCodeStorageTest extends TestCase {
$this->assertFalse($this->storage->validateCode($user, 'CHALLENGE'));
}
+
+ public function testDeleteCodes(): void {
+ $user = $this->createMock(IUser::class);
+ $this->mapper->expects($this->once())
+ ->method('deleteCodes')
+ ->with($user);
+
+ $this->storage->deleteCodes($user);
+ }
}