mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[ticket/10714] Fix unit test because of events and moved files
PHPBB3-10714
This commit is contained in:
@@ -142,7 +142,7 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case
|
||||
*/
|
||||
public function test_add_log_function($expected, $user_id, $mode, $required1, $additional1 = null, $additional2 = null, $additional3 = null)
|
||||
{
|
||||
global $db, $user;
|
||||
global $db, $user, $phpbb_dispatcher;
|
||||
|
||||
if ($expected)
|
||||
{
|
||||
@@ -155,6 +155,7 @@ class phpbb_log_function_add_log_test extends phpbb_database_test_case
|
||||
}
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
|
||||
$user->ip = 'user_ip';
|
||||
if ($user_id)
|
||||
|
Reference in New Issue
Block a user