Commit 0baddb31 authored by catch's avatar catch
Browse files

Issue #3554723 by alexpott, andypost: Flood system needs to handle NULL identifiers

(cherry picked from commit 4da595fb)
parent c31d68be
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
  }