diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-08-28 12:06:55 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-08-28 12:06:55 +0300 |
commit | d8d2a25940e313f740d95662192b65f3c6ecabc7 (patch) | |
tree | 8a5b54abbf8d2d2572e1cd302452bba8c165fdfb /tests/Unit/Listener | |
parent | 3a423ba025da9d757003ccf9321abb6715ebfa9d (diff) |
Fix events unit test
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/Unit/Listener')
-rw-r--r-- | tests/Unit/Listener/StateChangeRegistryUpdaterTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Listener/StateChangeRegistryUpdaterTest.php b/tests/Unit/Listener/StateChangeRegistryUpdaterTest.php index 142da09..0c48d4b 100644 --- a/tests/Unit/Listener/StateChangeRegistryUpdaterTest.php +++ b/tests/Unit/Listener/StateChangeRegistryUpdaterTest.php @@ -13,8 +13,8 @@ use OCA\TwoFactorTOTP\Event\StateChanged; use OCA\TwoFactorTOTP\Listener\StateChangeRegistryUpdater; use OCA\TwoFactorTOTP\Provider\TotpProvider; use OCP\Authentication\TwoFactorAuth\IRegistry; +use OCP\EventDispatcher\Event; use OCP\IUser; -use Symfony\Component\EventDispatcher\Event; class StateChangeRegistryUpdaterTest extends TestCase { @@ -37,7 +37,7 @@ class StateChangeRegistryUpdaterTest extends TestCase { } public function testIgnoresGenericEvent() { - $event = $this->createMock(Event::class); + $event = new Event(); $this->registry->expects($this->never()) ->method('enableProviderFor'); $this->registry->expects($this->never()) |