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' ); }