From fbf85b76c15c27e478f24947098d56c8c4bb3435 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Oct 2012 15:38:50 +0200 Subject: [feature/soft-delete] Correctly synchronize the topic_visibility in sync() This also makes sync('topic_visibility') obsolete, but we keep it for now. Also fix a unit test, because ITEM_DELETED overpowers ITEM_UNAPPROVED PHPBB3-9567 --- tests/content_visibility/set_post_visibility_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/content_visibility') diff --git a/tests/content_visibility/set_post_visibility_test.php b/tests/content_visibility/set_post_visibility_test.php index 42459c515a..d3b237e3e9 100644 --- a/tests/content_visibility/set_post_visibility_test.php +++ b/tests/content_visibility/set_post_visibility_test.php @@ -62,7 +62,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_visibility' => 0, 'topic_first_post_id' => 1, 'topic_last_post_id' => 3), + array('topic_visibility' => 2, 'topic_first_post_id' => 1, 'topic_last_post_id' => 3), ), ), array( -- cgit v1.2.1