Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-08-28 12:06:55 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-08-28 12:06:55 +0300
commitd8d2a25940e313f740d95662192b65f3c6ecabc7 (patch)
tree8a5b54abbf8d2d2572e1cd302452bba8c165fdfb /tests/Unit/Listener
parent3a423ba025da9d757003ccf9321abb6715ebfa9d (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.php4
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())