diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index a5bd0a995d..109cdb46d0 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -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() { diff --git a/tests/phpunit/tests/rest-api/rest-comments-controller.php b/tests/phpunit/tests/rest-api/rest-comments-controller.php index 7dd552d3d3..5bf7cd10dc 100644 --- a/tests/phpunit/tests/rest-api/rest-comments-controller.php +++ b/tests/phpunit/tests/rest-api/rest-comments-controller.php @@ -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() ) {