mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user