Tests: Correct the expected result for wp_ajax_replyto_comment() test with a draft post.

The "Error:" prefix was previously removed and accidentally re-added with `@covers` tags.

Follow-up to [53337], [53561].

See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@53565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-06-23 21:36:47 +00:00
parent 63560d16da
commit 984680b54e

View File

@@ -188,7 +188,7 @@ class Tests_Ajax_ReplytoComment extends WP_Ajax_UnitTestCase {
// Make the request.
$this->expectException( 'WPAjaxDieStopException' );
$this->expectExceptionMessage( 'Error: You cannot reply to a comment on a draft post.' );
$this->expectExceptionMessage( 'You cannot reply to a comment on a draft post.' );
$this->_handleAjax( 'replyto-comment' );
}