From 6d399c7d6a8519ad3e6f7b3154ee42ee08eb435f Mon Sep 17 00:00:00 2001 From: Dhruv Date: Thu, 7 Aug 2014 23:47:32 +0200 Subject: [ticket/12718] Fix spacing and type casting PHPBB3-12718 --- tests/content_visibility/delete_post_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/content_visibility') diff --git a/tests/content_visibility/delete_post_test.php b/tests/content_visibility/delete_post_test.php index e85fbd3fc7..a913b4b578 100644 --- a/tests/content_visibility/delete_post_test.php +++ b/tests/content_visibility/delete_post_test.php @@ -276,7 +276,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case ), ), array( - array('forum_posts_approved'=> 0, 'forum_posts_unapproved' => 0, 'forum_posts_softdeleted' => 1, 'forum_topics_approved' => 0, 'forum_topics_unapproved' => 0, 'forum_topics_softdeleted' => 1, 'forum_last_post_id' => 0), + array('forum_posts_approved' => 0, 'forum_posts_unapproved' => 0, 'forum_posts_softdeleted' => 1, 'forum_topics_approved' => 0, 'forum_topics_unapproved' => 0, 'forum_topics_softdeleted' => 1, 'forum_last_post_id' => 0), ), array( array('user_posts' => 3), @@ -340,7 +340,7 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case $result = $db->sql_query('SELECT user_posts FROM phpbb_users - WHERE user_id = ' . $data['poster_id']); + WHERE user_id = ' . (int) $data['poster_id']); $this->assertEquals($expected_user, $db->sql_fetchrowset($result)); $db->sql_freeresult($result); -- cgit v1.2.1