File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ public function test_verify_aioseo_active_or_fail_not_active() {
7272 // WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().
7373 try {
7474 $ this ->mock_class ->public_verify_aioseo_active_or_fail ();
75- $ this ->fail ( 'Expected WPAjaxDieStopException was not thrown ' );
76- } catch ( \WPAjaxDieStopException $ e ) {
75+ $ this ->fail ( 'Expected WPAjaxDieContinueException was not thrown ' );
76+ } catch ( \WPAjaxDieContinueException $ e ) {
7777 // Get the response.
7878 $ response = json_decode ( $ this ->_last_response , true );
7979 $ this ->assertFalse ( $ response ['success ' ] );
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ public function test_verify_nonce_or_fail_invalid() {
105105 // WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().
106106 try {
107107 $ this ->mock_class ->public_verify_nonce_or_fail ();
108- $ this ->fail ( 'Expected WPAjaxDieStopException was not thrown ' );
109- } catch ( \WPAjaxDieStopException $ e ) {
108+ $ this ->fail ( 'Expected WPAjaxDieContinueException was not thrown ' );
109+ } catch ( \WPAjaxDieContinueException $ e ) {
110110 // Get the response.
111111 $ response = json_decode ( $ this ->_last_response , true );
112112 $ this ->assertFalse ( $ response ['success ' ] );
@@ -151,8 +151,8 @@ public function test_verify_capability_or_fail_non_admin() {
151151 // WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().
152152 try {
153153 $ this ->mock_class ->public_verify_capability_or_fail ();
154- $ this ->fail ( 'Expected WPAjaxDieStopException was not thrown ' );
155- } catch ( \WPAjaxDieStopException $ e ) {
154+ $ this ->fail ( 'Expected WPAjaxDieContinueException was not thrown ' );
155+ } catch ( \WPAjaxDieContinueException $ e ) {
156156 // Get the response.
157157 $ response = json_decode ( $ this ->_last_response , true );
158158 $ this ->assertFalse ( $ response ['success ' ] );
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ public function test_verify_yoast_active_or_fail_not_active() {
7272 // WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().
7373 try {
7474 $ this ->mock_class ->public_verify_yoast_active_or_fail ();
75- $ this ->fail ( 'Expected WPAjaxDieStopException was not thrown ' );
76- } catch ( \WPAjaxDieStopException $ e ) {
75+ $ this ->fail ( 'Expected WPAjaxDieContinueException was not thrown ' );
76+ } catch ( \WPAjaxDieContinueException $ e ) {
7777 // Get the response.
7878 $ response = json_decode ( $ this ->_last_response , true );
7979 $ this ->assertFalse ( $ response ['success ' ] );
You can’t perform that action at this time.
0 commit comments