diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-19 12:40:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-19 12:40:25 +0200 |
commit | a9f22ac7b15bff54cfb8daa0451a8d79a47d596d (patch) | |
tree | dba6b34bc4128a040cedf725615bcd88afd372f0 /tests | |
parent | 6f5f71d1003c7ede6060d11efc293e536c39684e (diff) | |
download | nextcloud-server-a9f22ac7b15bff54cfb8daa0451a8d79a47d596d.tar.gz nextcloud-server-a9f22ac7b15bff54cfb8daa0451a8d79a47d596d.zip |
More test fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-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); |