From 3e1f66bb2e32cd83656251ddac61b3c15ee50d42 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Jun 2020 11:38:40 +0000 Subject: [PATCH] Coding Standards: Add missing visibility keywords to `Tests_Comment` methods. See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@48229 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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';