Tests: Remove unnecessary i18n from _wp_update_comment_data_filter().

Follow-up to [48154], [48217].

See #39732.

git-svn-id: https://develop.svn.wordpress.org/trunk@48228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-30 11:34:58 +00:00
parent 5f046745ff
commit 7653810aa2
2 changed files with 4 additions and 4 deletions

View File

@ -161,10 +161,10 @@ class Tests_Comment extends WP_UnitTestCase {
}
/**
* Block comments from being updated by returning WP_Error
* Blocks comments from being updated by returning WP_Error.
*/
public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) {
return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), 500 );
return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', 500 );
}
public function test_get_approved_comments() {

View File

@ -2814,10 +2814,10 @@ class WP_Test_REST_Comments_Controller extends WP_Test_REST_Controller_Testcase
}
/**
* Block comments from being updated by returning WP_Error
* Blocks comments from being updated by returning WP_Error.
*/
public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) {
return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), array( 'status' => 500 ) );
return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', array( 'status' => 500 ) );
}
public function verify_comment_roundtrip( $input = array(), $expected_output = array() ) {