Make WordPress Core


Ignore:
Timestamp:
06/23/2022 09:36:47 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/ReplytoComment.php

    r53561 r53565  
    189189                // Make the request.
    190190                $this->expectException( 'WPAjaxDieStopException' );
    191                 $this->expectExceptionMessage( 'Error: You cannot reply to a comment on a draft post.' );
     191                $this->expectExceptionMessage( 'You cannot reply to a comment on a draft post.' );
    192192                $this->_handleAjax( 'replyto-comment' );
    193193        }
Note: See TracChangeset for help on using the changeset viewer.