@@ -21,9 +21,9 @@ public function log_failed_login_attempts_data()
2121 {
2222 return array (
2323 array (true , true , array ('user_row ' => array ('user_id ' => 2 ))),
24- array (false , true , array ()),
25- array (true , false , array ()),
26- array (false , false , array ()),
24+ array (false , true , array (' user_row ' => array ( ' user_id ' => 0 ) )),
25+ array (true , false , array (' user_row ' => array ( ' user_id ' => 0 ) )),
26+ array (false , false , array (' user_row ' => array ( ' user_id ' => 0 ) )),
2727 );
2828 }
2929
@@ -40,13 +40,13 @@ public function test_log_failed_login_attempts($enabled, $in_watch_group, $resul
4040
4141 $ this ->set_listener ();
4242
43- $ this ->listener ->expects ($ this -> atMost (1 ))
43+ $ this ->listener ->expects (self :: atMost (1 ))
4444 ->method ('in_watch_group ' )
4545 ->willReturn ($ in_watch_group );
4646
4747 // Check log->add is called once with expected data if enabled and in_watch_group are true,
4848 // otherwise check that it is never called.
49- $ this ->log ->expects (($ enabled && $ in_watch_group ) ? $ this -> once () : $ this -> never ())
49+ $ this ->log ->expects (($ enabled && $ in_watch_group ) ? self :: once () : self :: never ())
5050 ->method ('add ' )
5151 ->with ('user ' , $ result ['user_row ' ]['user_id ' ], $ this ->user ->ip , 'LOG_TEAM_AUTH_FAIL ' , time (), array ('reportee_id ' => $ result ['user_row ' ]['user_id ' ]));
5252
0 commit comments