diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-21 16:00:01 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-21 16:36:32 +0200 |
| commit | d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c (patch) | |
| tree | ab756b48f4d49cde749a7d7751994d9ecf48ba71 /tests/log/function_view_log_test.php | |
| parent | 2afbec5ac425b8913c2d3e3193b195190b7185db (diff) | |
| download | forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.gz forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.bz2 forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.tar.xz forums-d828ef93f29eda5fe31a6f8291dd1e5b3cdfd97c.zip | |
[ticket/10714] Fix unit test because of events and moved files
PHPBB3-10714
Diffstat (limited to 'tests/log/function_view_log_test.php')
| -rw-r--r-- | tests/log/function_view_log_test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/log/function_view_log_test.php b/tests/log/function_view_log_test.php index 78bc2843a8..790597e9c8 100644 --- a/tests/log/function_view_log_test.php +++ b/tests/log/function_view_log_test.php @@ -7,13 +7,12 @@ * */ -require_once dirname(__FILE__) . '/../../phpBB/includes/auth.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/functions_admin.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/session.php'; -require_once dirname(__FILE__) . '/../mock_user.php'; +require_once dirname(__FILE__) . '/../mock/user.php'; require_once dirname(__FILE__) . '/../mock/cache.php'; class phpbb_log_function_view_log_test extends phpbb_database_test_case @@ -300,13 +299,14 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case */ public function test_view_log_function($expected, $expected_returned, $mode, $log_count, $limit = 5, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $limit_days = 0, $sort_by = 'l.log_id ASC', $keywords = '') { - global $cache, $db, $user, $auth; + global $cache, $db, $user, $auth, $phpbb_dispatcher; $db = $this->new_dbal(); $cache = new phpbb_mock_cache; + $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); // Create auth mock - $auth = $this->getMock('auth'); + $auth = $this->getMock('phpbb_auth'); $acl_get_map = array( array('f_read', 23, true), array('m_', 23, true), |
