diff options
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php | 4 | ||||
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php b/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php index db048a42749..e74f08043f7 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php @@ -75,11 +75,11 @@ class SettingsControllerTest extends TestCase { $this->storage->expects($this->once()) ->method('getBackupCodesState') ->with($user) - ->willReturn('state'); + ->willReturn(['state']); $expected = [ 'codes' => $codes, - 'state' => 'state', + 'state' => ['state'], ]; $response = $this->controller->createCodes(); $this->assertInstanceOf(JSONResponse::class, $response); diff --git a/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php b/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php index 4a32faf0f67..4d93110514a 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php @@ -89,8 +89,7 @@ class ActivityPublisherTest extends TestCase { ->with('fritz') ->willReturnSelf(); $this->activityManager->expects($this->once()) - ->method('publish') - ->willReturn($activityEvent); + ->method('publish'); $this->listener->handle($event); } |