From e9b6dbddad1644a522ee0c160763442f3980da6e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 16 Jan 2025 15:27:58 +0100 Subject: [PATCH] Coding standards. --- tests/phpunit/tests/user.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/user.php b/tests/phpunit/tests/user.php index e9743eae63bde..5f33f3a8536dc 100644 --- a/tests/phpunit/tests/user.php +++ b/tests/phpunit/tests/user.php @@ -63,11 +63,12 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { public function set_up() { parent::set_up(); - add_action( 'set_auth_cookie', array( $this, 'action_set_auth_cookie' ), 10, 6 ); + add_action( 'set_auth_cookie', array( $this, 'action_set_auth_cookie' ), 10, 6 ); add_action( 'set_logged_in_cookie', array( $this, 'action_set_logged_in_cookie' ), 10 ); - add_action( 'clear_auth_cookie', array( $this, 'action_clear_auth_cookie' ) ); + add_action( 'clear_auth_cookie', array( $this, 'action_clear_auth_cookie' ) ); + + $_COOKIE = array(); - $_COOKIE = []; $this->author = clone self::$_author; }