diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-07 16:44:49 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-07 16:44:49 +0200 |
commit | ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6 (patch) | |
tree | 550d513947d722a7e294a047175cb1f8f17f012b /tests/content_visibility/delete_post_test.php | |
parent | 778483d070792dc5a6765de2d839110202b16346 (diff) | |
parent | 83e5a25c0a03b7b5ee9283201143bf2e6c94758e (diff) | |
download | forums-ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6.tar forums-ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6.tar.gz forums-ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6.tar.bz2 forums-ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6.tar.xz forums-ab8a197e92c491ac37f8ffe2fff1f7c6c42167b6.zip |
Merge pull request #2623 from dhruvgoel92/ticket/12738
[ticket/12738] Move related code from functions_posting to function
* dhruvgoel92/ticket/12738:
[ticket/12738] Update constructor docblock
[ticket/12738] Add $config to constructor in notification test
[ticket/12738] Fix tests with new config object injection
[ticket/12738] Inject config object into content_visibility class
[ticket/11528] Move related code from functions_posting to function
Diffstat (limited to 'tests/content_visibility/delete_post_test.php')
-rw-r--r-- | tests/content_visibility/delete_post_test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php index 99068729df..aa705c52a5 100644 --- a/tests/content_visibility/delete_post_test.php +++ b/tests/content_visibility/delete_post_test.php @@ -271,7 +271,8 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case $config['search_type'] = 'phpbb_mock_search'; $cache = new phpbb_mock_cache; $db = $this->new_dbal(); - set_config_count(null, null, null, new \phpbb\config\config(array('num_posts' => 3, 'num_topics' => 1))); + $phpbb_config = new \phpbb\config\config(array('num_posts' => 3, 'num_topics' => 1)); + set_config_count(null, null, null, $phpbb_config); // Create auth mock $auth = $this->getMock('\phpbb\auth\auth'); @@ -287,7 +288,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case $phpbb_container = new phpbb_mock_container_builder(); $phpbb_container->set('notification_manager', new phpbb_mock_notification_manager()); - $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE)); + $phpbb_container->set('content.visibility', new \phpbb\content_visibility($auth, $phpbb_config, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE)); delete_post($forum_id, $topic_id, $post_id, $data, $is_soft, $reason); |