diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-31 22:17:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 22:17:40 +0200 |
commit | b39fb55ee0b4bc4c4bd0fcedca3f836a17586495 (patch) | |
tree | 17089677aeeace2d6e4c488b0a0558be69564430 /tests | |
parent | 09d56e9d3db7893a73b32d7cc420dcb450f1bb79 (diff) | |
parent | 84f3d2ddebbda3d565a61f38d9d79e66072ab692 (diff) | |
download | nextcloud-server-b39fb55ee0b4bc4c4bd0fcedca3f836a17586495.tar.gz nextcloud-server-b39fb55ee0b4bc4c4bd0fcedca3f836a17586495.zip |
Merge pull request #19845 from nextcloud/enh/events/loginFailedEvent
Event for failed login attempts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/Login/LoggedInCheckCommandTest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php b/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php index 3b18c97a612..f051147609c 100644 --- a/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php +++ b/tests/lib/Authentication/Login/LoggedInCheckCommandTest.php @@ -25,8 +25,10 @@ declare(strict_types=1); namespace lib\Authentication\Login; +use Hoa\Iterator\Mock; use OC\Authentication\Login\LoggedInCheckCommand; use OC\Core\Controller\LoginController; +use OCP\EventDispatcher\IEventDispatcher; use OCP\ILogger; use PHPUnit\Framework\MockObject\MockObject; @@ -35,13 +37,18 @@ class LoggedInCheckCommandTest extends ALoginCommandTest { /** @var ILogger|MockObject */ private $logger; + /** @var IEventDispatcher|MockObject */ + private $dispatcher; + protected function setUp(): void { parent::setUp(); $this->logger = $this->createMock(ILogger::class); + $this->dispatcher = $this->createMock(IEventDispatcher::class); $this->cmd = new LoggedInCheckCommand( - $this->logger + $this->logger, + $this->dispatcher ); } |