diff --git a/tests/phpunit/tests/user.php b/tests/phpunit/tests/user.php index 19a688f653..cc751855f0 100644 --- a/tests/phpunit/tests/user.php +++ b/tests/phpunit/tests/user.php @@ -83,19 +83,19 @@ class Tests_User extends WP_UnitTestCase { public function test_that_you_can_login_with_an_email_that_has_apostrophe() { - //create the user with an email that has an apostrophe (see test setup) + // Create the user with an email that has an apostrophe (see test setup). - //login as the user + // Login as the user. $credentials = [ 'user_login' => "testemailaddress'@test.com", 'user_password' => 'password', ]; - //attempt to login + // Attempt to login. $user = wp_signon( $credentials ); - //assert that login was successfull - //if the login fails, an instance of WP_Error is returned rather than User object + // Assert that the login was successfull. + // If the login fails, an instance of WP_Error is returned rather than User object. $this->assertNotWPError( $user ); }