diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-08-10 13:40:27 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-10 13:43:04 +0200 |
commit | 8d99b4afe1557a6ec0e760c4876bb06a3b9991d3 (patch) | |
tree | caea0dc9618acd71add637ac8ed0fd83100fa5be /tests/content_visibility/set_post_visibility_test.php | |
parent | a57a96cbddbfdad65823aeca2901f26b62c9b12d (diff) | |
download | forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.gz forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.bz2 forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.tar.xz forums-8d99b4afe1557a6ec0e760c4876bb06a3b9991d3.zip |
[ticket/12932] Fix tests and calls to create_datetime
PHPBB3-12932
Diffstat (limited to 'tests/content_visibility/set_post_visibility_test.php')
-rw-r--r-- | tests/content_visibility/set_post_visibility_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/content_visibility/set_post_visibility_test.php b/tests/content_visibility/set_post_visibility_test.php index a596b45714..ab79fbc2ee 100644 --- a/tests/content_visibility/set_post_visibility_test.php +++ b/tests/content_visibility/set_post_visibility_test.php @@ -124,7 +124,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t $cache = new phpbb_mock_cache; $db = $this->new_dbal(); $auth = $this->getMock('\phpbb\auth\auth'); - $user = $this->getMock('\phpbb\user'); + $user = new \phpbb\user('\phpbb\datetime'); $config = new phpbb\config\config(array()); $content_visibility = new \phpbb\content_visibility($auth, $config, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE); @@ -174,7 +174,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t $cache = new phpbb_mock_cache; $db = $this->new_dbal(); $auth = $this->getMock('\phpbb\auth\auth'); - $user = $this->getMock('\phpbb\user'); + $user = new \phpbb\user('\phpbb\datetime'); $config = new phpbb\config\config(array()); $content_visibility = new \phpbb\content_visibility($auth, $config, $db, $user, $phpbb_root_path, $phpEx, FORUMS_TABLE, POSTS_TABLE, TOPICS_TABLE, USERS_TABLE); |