aboutsummaryrefslogtreecommitdiffstats
path: root/tests/content_visibility
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-05 11:04:56 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-05 11:04:56 +0200
commitb8642d7c8ab7769b8b692409fb6627a4196c93b0 (patch)
tree4f7e67a5bbb2f73735fa231bb3b3b803c8beb795 /tests/content_visibility
parent5b64ebc11d10b66212661282a4dcfd411d038211 (diff)
downloadforums-b8642d7c8ab7769b8b692409fb6627a4196c93b0.tar
forums-b8642d7c8ab7769b8b692409fb6627a4196c93b0.tar.gz
forums-b8642d7c8ab7769b8b692409fb6627a4196c93b0.tar.bz2
forums-b8642d7c8ab7769b8b692409fb6627a4196c93b0.tar.xz
forums-b8642d7c8ab7769b8b692409fb6627a4196c93b0.zip
[feature/soft-delete] Test topic visibility as well
PHPBB3-9657
Diffstat (limited to 'tests/content_visibility')
-rw-r--r--tests/content_visibility/set_post_visibility_test.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/content_visibility/set_post_visibility_test.php b/tests/content_visibility/set_post_visibility_test.php
index 1f760859ee..c488c648bc 100644
--- a/tests/content_visibility/set_post_visibility_test.php
+++ b/tests/content_visibility/set_post_visibility_test.php
@@ -34,7 +34,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
array('post_id' => 3, 'post_visibility' => 2, 'post_delete_reason' => ''),
),
array(
- array('topic_first_post_id' => '1', 'topic_last_post_id' => '2'),
+ array('topic_visibility' => 1, 'topic_first_post_id' => '1', 'topic_last_post_id' => '2'),
),
),
array(
@@ -48,7 +48,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
array('post_id' => 3, 'post_visibility' => 1, 'post_delete_reason' => 'approve'),
),
array(
- array('topic_first_post_id' => '2', 'topic_last_post_id' => '3'),
+ array('topic_visibility' => 1, 'topic_first_post_id' => '2', 'topic_last_post_id' => '3'),
),
),
array(
@@ -63,7 +63,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
array('post_id' => 7, 'post_visibility' => 2, 'post_delete_reason' => ''),
),
array(
- array('topic_first_post_id' => '6', 'topic_last_post_id' => '6'),
+ array('topic_visibility' => 1, 'topic_first_post_id' => '6', 'topic_last_post_id' => '6'),
),
),
array(
@@ -73,12 +73,12 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
false, true,
array(
array('post_id' => 4, 'post_visibility' => 0, 'post_delete_reason' => ''),
- array('post_id' => 5, 'post_visibility' => 1, 'post_delete_reason' => ''),
+ array('post_id' => 5, 'post_visibility' => 1, 'post_delete_reason' => 'deleted'),
array('post_id' => 6, 'post_visibility' => 2, 'post_delete_reason' => 'deleted'),
array('post_id' => 7, 'post_visibility' => 2, 'post_delete_reason' => ''),
),
array(
- array('topic_first_post_id' => '5', 'topic_last_post_id' => '5'),
+ array('topic_visibility' => 1, 'topic_first_post_id' => '5', 'topic_last_post_id' => '5'),
),
),
);
@@ -103,7 +103,7 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
$this->assertEquals($expected, $db->sql_fetchrowset($result));
$db->sql_freeresult($result);
- $result = $db->sql_query('SELECT topic_first_post_id, topic_last_post_id
+ $result = $db->sql_query('SELECT topic_visibility, topic_first_post_id, topic_last_post_id
FROM phpbb_topics
WHERE topic_id = ' . $topic_id);