diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-19 13:40:25 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-19 13:40:25 +0300 |
commit | a9f22ac7b15bff54cfb8daa0451a8d79a47d596d (patch) | |
tree | dba6b34bc4128a040cedf725615bcd88afd372f0 | |
parent | 6f5f71d1003c7ede6060d11efc293e536c39684e (diff) |
More test fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php index f8db85a9358..786bac6d856 100644 --- a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php @@ -70,7 +70,7 @@ class BruteForceMiddlewareTest extends TestCase { ->willReturn('127.0.0.1'); $this->throttler ->expects($this->once()) - ->method('sleepDelay') + ->method('sleepDelayOrThrowOnMax') ->with('127.0.0.1', 'login'); /** @var Controller|\PHPUnit\Framework\MockObject\MockObject $controller */ @@ -92,7 +92,7 @@ class BruteForceMiddlewareTest extends TestCase { ->method('getRemoteAddress'); $this->throttler ->expects($this->never()) - ->method('sleepDelay'); + ->method('sleepDelayOrThrowOnMax'); /** @var Controller|\PHPUnit\Framework\MockObject\MockObject $controller */ $controller = $this->createMock(Controller::class); |