From 133b6a9f910be0099c4524ac4839aae38e7a7978 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 21 Mar 2021 12:53:24 +0000 Subject: [PATCH] Tests: Move the `get_current_commenter()` method next to the test it's used in. Follow-up to [48133]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50559 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/getPageOfComment.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/tests/comment/getPageOfComment.php b/tests/phpunit/tests/comment/getPageOfComment.php index e446162001..f62be60137 100644 --- a/tests/phpunit/tests/comment/getPageOfComment.php +++ b/tests/phpunit/tests/comment/getPageOfComment.php @@ -488,6 +488,14 @@ class Tests_Comment_GetPageOfComment extends WP_UnitTestCase { $this->assertContains( $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) ); } + public function get_current_commenter() { + return array( + 'comment_author_email' => 'foo@bar.test', + 'comment_author' => 'Foo', + 'comment_author_url' => 'https://bar.test', + ); + } + /** * @ticket 8973 */ @@ -538,12 +546,4 @@ class Tests_Comment_GetPageOfComment extends WP_UnitTestCase { wp_set_current_user( $current_user ); } - - public function get_current_commenter() { - return array( - 'comment_author_email' => 'foo@bar.test', - 'comment_author' => 'Foo', - 'comment_author_url' => 'https://bar.test', - ); - } }