Coding Standards: Clean up the tests around `test_that_you_can_login_with_an_email_that_has_apostrophe`.

Let's use the proper coding standards for the comments.

Fixes #38744.
Props cafenoirdesign.


git-svn-id: https://develop.svn.wordpress.org/trunk@46643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2019-11-03 22:16:27 +00:00
parent 922721c360
commit 83366144b3
1 changed files with 5 additions and 5 deletions

View File

@ -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 );
}