Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
More test fixing
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and LukasReschke committed Jun 23, 2021
commit 4b558cdf895827c3d052a086045e396281f96aaa
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testBeforeControllerWithAnnotation() {
->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 */
Expand All @@ -92,7 +92,7 @@ public function testBeforeControllerWithoutAnnotation() {
->method('getRemoteAddress');
$this->throttler
->expects($this->never())
->method('sleepDelay');
->method('sleepDelayOrThrowOnMax');

/** @var Controller|\PHPUnit_Framework_MockObject_MockObject $controller */
$controller = $this->createMock(Controller::class);
Expand Down