aboutsummaryrefslogtreecommitdiffstats
path: root/tests/log/function_view_log_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/log/function_view_log_test.php')
-rw-r--r--tests/log/function_view_log_test.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/log/function_view_log_test.php b/tests/log/function_view_log_test.php
index ee9c3e5893..edab371769 100644
--- a/tests/log/function_view_log_test.php
+++ b/tests/log/function_view_log_test.php
@@ -274,7 +274,7 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case
// Offset that will be returned from the function
'expected_returned' => 0,
// view_log parameters (see includes/functions_admin.php for docblock)
- // $log is ommited!
+ // $log is omitted!
'mod', 5, 0, 12, 45,
),
*/
@@ -378,7 +378,7 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
// Create auth mock
- $auth = $this->getMock('\phpbb\auth\auth');
+ $auth = $this->createMock('\phpbb\auth\auth');
$acl_get_map = array(
array('f_read', 23, true),
array('m_', 23, true),
@@ -411,6 +411,8 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case
2 => 'plural (%d)',
),
);
+ $user->session_id = false;
+ $user->data['user_id'] = 10;
$phpbb_log = new \phpbb\log\log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);