diff --git a/tests/codeception/tests/integration/AjaxHandlerTest.php b/tests/codeception/tests/integration/AjaxHandlerTest.php index c0f40f9992362437d5efe3657ea9a396eef03657..9967080e5f2767bb5db60d0e4c9b0baa4d7d396d 100644 --- a/tests/codeception/tests/integration/AjaxHandlerTest.php +++ b/tests/codeception/tests/integration/AjaxHandlerTest.php @@ -91,6 +91,7 @@ class AjaxHandlerTest extends WPTestCase { } public function testShoulfNotProcessAjaxNoticeDismissWhenInvalidNonce() { + defince( 'DOING_AJAX', true ); $_POST[ AjaxHandler::POST_FIELD_NOTICE_NAME ] = self::NOTICE_NAME; $_POST[ AjaxHandler::POST_FIELD_SECURITY ] = wp_create_nonce();