summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes/testcase-ajax.php
diff options
context:
space:
mode:
authorPascal Birchler <swissspidy@git.wordpress.org>2024-04-12 17:45:23 +0000
committerPascal Birchler <swissspidy@git.wordpress.org>2024-04-12 17:45:23 +0000
commit11bc9c9e8c628bff8a0cca3bcd9eff151164548b (patch)
treec1f232fb6d0b1b2dbf25a74cf02aae55d0e729fb /tests/phpunit/includes/testcase-ajax.php
parent6366755a315b80604740af329eefa8a1a790ff7b (diff)
downloadwordpress-11bc9c9e8c628bff8a0cca3bcd9eff151164548b.tar.gz
wordpress-11bc9c9e8c628bff8a0cca3bcd9eff151164548b.zip
Docs: Fix various typos and spelling mistakes.
Props swissspidy, jucaduca, sergeybiryukov. See #60699. git-svn-id: https://develop.svn.wordpress.org/trunk@57987 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/testcase-ajax.php')
-rw-r--r--tests/phpunit/includes/testcase-ajax.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/testcase-ajax.php b/tests/phpunit/includes/testcase-ajax.php
index 0478c10900..2e86c29e67 100644
--- a/tests/phpunit/includes/testcase-ajax.php
+++ b/tests/phpunit/includes/testcase-ajax.php
@@ -133,7 +133,7 @@ abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase {
/**
* Sets up the test fixture.
*
- * Overrides wp_die(), pretends to be Ajax, and suppresses E_WARNINGs.
+ * Overrides wp_die(), pretends to be Ajax, and suppresses warnings.
*/
public function set_up() {
parent::set_up();
@@ -161,7 +161,7 @@ abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase {
$_GET = array();
unset( $GLOBALS['post'] );
unset( $GLOBALS['comment'] );
- remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 );
+ remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1 );
remove_action( 'clear_auth_cookie', array( $this, 'logout' ) );
error_reporting( $this->_error_level );
set_current_screen( 'front' );