]> source.dussan.org Git - nextcloud-server.git/commitdiff
More test fixing
authorJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 10:40:25 +0000 (12:40 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 10:40:25 +0000 (12:40 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php

index f8db85a935815fe6ec88939d2e64de68eb396192..786bac6d856bbcac97380a7c05351101a47909a1 100644 (file)
@@ -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);