diff --git a/tests/unit/Controller/SAMLControllerTest.php b/tests/unit/Controller/SAMLControllerTest.php index d59df9ba6..773061db7 100644 --- a/tests/unit/Controller/SAMLControllerTest.php +++ b/tests/unit/Controller/SAMLControllerTest.php @@ -26,6 +26,7 @@ use OCP\IUserSession; use OCP\Security\ICrypto; use OCP\Security\ITrustedDomainHelper; +use OCP\User\Events\UserLoggedInEvent; use PHPUnit\Framework\MockObject\MockObject; use Psr\Log\LoggerInterface; use Test\TestCase; @@ -103,7 +104,8 @@ function ($param) { $this->userResolver, $this->userData, $this->crypto, - $this->trustedDomainController + $this->trustedDomainController, + $this->eventDispatcher, ); }