зеркало из https://github.com/nextcloud/server.git
More test fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
6f5f71d100
Коммит
a9f22ac7b1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче