Loading core/tests/Drupal/Tests/Core/Flood/MemoryBackendTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ protected function setUp(): void { $request_mock = $this->getMockBuilder(Request::class) ->onlyMethods(['getClientIp']) ->getMock(); $request_mock->method('getClientIp')->willReturn('127.0.0.1'); $request->push($request_mock); $this->flood = new MemoryBackend($request); } Loading Loading
core/tests/Drupal/Tests/Core/Flood/MemoryBackendTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ protected function setUp(): void { $request_mock = $this->getMockBuilder(Request::class) ->onlyMethods(['getClientIp']) ->getMock(); $request_mock->method('getClientIp')->willReturn('127.0.0.1'); $request->push($request_mock); $this->flood = new MemoryBackend($request); } Loading