diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-13 17:04:56 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-13 17:04:56 +0300 |
commit | da99906fcc03903af995bd627e45f8c07712939d (patch) | |
tree | dd0ad8a5e00490c3daff9b7ec92fd59b21ec8827 /tests | |
parent | 6eb07948d4d8b3fd2f7ad4b4c5037244115a6b7e (diff) |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Controller/RegisterControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Unit/Controller/RegisterControllerTest.php b/tests/Unit/Controller/RegisterControllerTest.php index 2326491..0b6d875 100644 --- a/tests/Unit/Controller/RegisterControllerTest.php +++ b/tests/Unit/Controller/RegisterControllerTest.php @@ -35,6 +35,7 @@ use OCP\AppFramework\Http\RedirectResponse; use OCP\AppFramework\Http\RedirectToDefaultAppResponse; use OCP\AppFramework\Http\StandaloneTemplateResponse; use OCP\AppFramework\Http\TemplateResponse; +use OCP\EventDispatcher\IEventDispatcher; use OCP\IConfig; use OCP\IL10N; use OCP\IRequest; @@ -59,6 +60,8 @@ class RegisterControllerTest extends TestCase { private $loginFlowService; /** @var MailService|MockObject */ private $mailService; + /** @var IEventDispatcher|MockObject */ + private $eventDispatcher; public function setUp(): void { parent::setUp(); @@ -69,6 +72,7 @@ class RegisterControllerTest extends TestCase { $this->registrationService = $this->createMock(RegistrationService::class); $this->loginFlowService = $this->createMock(LoginFlowService::class); $this->mailService = $this->createMock(MailService::class); + $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->l10n->expects($this->any()) ->method('t') @@ -91,7 +95,8 @@ class RegisterControllerTest extends TestCase { $this->config, $this->registrationService, $this->loginFlowService, - $this->mailService + $this->mailService, + $this->eventDispatcher ); } @@ -106,6 +111,7 @@ class RegisterControllerTest extends TestCase { $this->registrationService, $this->loginFlowService, $this->mailService, + $this->eventDispatcher, ]) ->getMock(); } |