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
This commit is contained in:
Sergey Biryukov
2021-03-21 12:53:24 +00:00
parent 05566e992d
commit 133b6a9f91

View File

@@ -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',
);
}
}