From 984680b54e10a2aac0a99ced43c4fb9c5947cea1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Jun 2022 21:36:47 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/ajax/ReplytoComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/ajax/ReplytoComment.php b/tests/phpunit/tests/ajax/ReplytoComment.php index 3db36b478f..6a150ca12b 100644 --- a/tests/phpunit/tests/ajax/ReplytoComment.php +++ b/tests/phpunit/tests/ajax/ReplytoComment.php @@ -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' ); }