1
0
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:
Joas Schilling
2012-08-21 16:00:01 +02:00
parent 2afbec5ac4
commit d828ef93f2
3 changed files with 8 additions and 6 deletions

View File

@@ -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)