Skip to content

Commit

Permalink
More coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Jan 16, 2025
1 parent 9778efc commit 262f599
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final public function action_set_auth_cookie(
string $token
): void {
$_COOKIE[ SECURE_AUTH_COOKIE ] = $cookie;
$_COOKIE[ AUTH_COOKIE ] = $cookie;
$_COOKIE[ AUTH_COOKIE ] = $cookie;
}

final public function action_set_logged_in_cookie( string $cookie ): void {
Expand Down Expand Up @@ -1169,8 +1169,8 @@ public function test_changing_own_password_retains_current_session( bool $rememb
'ID' => $user->ID,
'user_pass' => 'my_new_password',
);
$updated = wp_update_user( $userdata, $manager );
$parsed = wp_parse_auth_cookie();
$updated = wp_update_user( $userdata, $manager );
$parsed = wp_parse_auth_cookie();

// Check the prerequisites:
$this->assertNotWPError( $updated );
Expand Down

0 comments on commit 262f599

Please sign in to comment.