summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-10 11:37:53 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-12 14:44:55 +0200
commita1ef939c061686bab80d4ad3b457533803452343 (patch)
tree0705f106dcd182016204edac647821ac01eed77f /tests
parentac48a9ba61ec9cb7632bf67328b654f2a628a981 (diff)
downloadnextcloud-server-a1ef939c061686bab80d4ad3b457533803452343.tar.gz
nextcloud-server-a1ef939c061686bab80d4ad3b457533803452343.zip
Use Symfony's new contract Event class instead of the deprecated one
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/RegistryTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
index 08498738fa1..ad29377e559 100644
--- a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/**
* @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -29,27 +29,27 @@ use OC\Authentication\TwoFactorAuth\Registry;
use OCP\Authentication\TwoFactorAuth\IProvider;
use OCP\Authentication\TwoFactorAuth\IRegistry;
use OCP\Authentication\TwoFactorAuth\RegistryEvent;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\IUser;
-use PHPUnit_Framework_MockObject_MockObject;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
class RegistryTest extends TestCase {
- /** @var ProviderUserAssignmentDao|PHPUnit_Framework_MockObject_MockObject */
+ /** @var ProviderUserAssignmentDao|MockObject */
private $dao;
+ /** @var IEventDispatcher|MockObject */
+ private $dispatcher;
+
/** @var Registry */
private $registry;
- /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */
- private $dispatcher;
-
protected function setUp() {
parent::setUp();
$this->dao = $this->createMock(ProviderUserAssignmentDao::class);
- $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
+ $this->dispatcher = $this->createMock(IEventDispatcher::class);
$this->registry = new Registry($this->dao, $this->dispatcher);
}