From a5853d7ecc08e048144ad1e9f1ff6f1fbf192a92 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 18 Aug 2020 16:25:19 +0200 Subject: Use dispatchTyped instead of dispatch on the new event dispatcher Signed-off-by: Morris Jobke --- .../twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/twofactor_backupcodes/tests') diff --git a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php index ef17459cb06..7d06995269c 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php @@ -82,9 +82,8 @@ class BackupCodeStorageTest extends TestCase { ->method('insert') ->with($this->equalTo($row)); $this->eventDispatcher->expects($this->once()) - ->method('dispatch') + ->method('dispatchTyped') ->with( - $this->equalTo(CodesGenerated::class), $this->equalTo(new CodesGenerated($user)) ); -- cgit v1.2.3