diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index 109cdb46d0..8acbe29e2b 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -30,7 +30,7 @@ class Tests_Comment extends WP_UnitTestCase { ); } - function test_wp_update_comment() { + public function test_wp_update_comment() { $post = self::factory()->post->create_and_get( array( 'post_title' => 'some-post', @@ -73,7 +73,7 @@ class Tests_Comment extends WP_UnitTestCase { /** * @ticket 30627 */ - function test_wp_update_comment_updates_comment_type() { + public function test_wp_update_comment_updates_comment_type() { $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) ); wp_update_comment( @@ -90,7 +90,7 @@ class Tests_Comment extends WP_UnitTestCase { /** * @ticket 36784 */ - function test_wp_update_comment_updates_comment_meta() { + public function test_wp_update_comment_updates_comment_meta() { $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) ); wp_update_comment( array( @@ -107,7 +107,7 @@ class Tests_Comment extends WP_UnitTestCase { /** * @ticket 30307 */ - function test_wp_update_comment_updates_user_id() { + public function test_wp_update_comment_updates_user_id() { $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) ); wp_update_comment( @@ -124,7 +124,7 @@ class Tests_Comment extends WP_UnitTestCase { /** * @ticket 34954 */ - function test_wp_update_comment_with_no_post_id() { + public function test_wp_update_comment_with_no_post_id() { $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => 0 ) ); $updated_comment_text = 'I should be able to update a comment with a Post ID of zero';