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:
parent
922721c360
commit
83366144b3
|
@ -83,19 +83,19 @@ class Tests_User extends WP_UnitTestCase {
|
||||||
|
|
||||||
public function test_that_you_can_login_with_an_email_that_has_apostrophe() {
|
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 = [
|
$credentials = [
|
||||||
'user_login' => "testemailaddress'@test.com",
|
'user_login' => "testemailaddress'@test.com",
|
||||||
'user_password' => 'password',
|
'user_password' => 'password',
|
||||||
];
|
];
|
||||||
|
|
||||||
//attempt to login
|
// Attempt to login.
|
||||||
$user = wp_signon( $credentials );
|
$user = wp_signon( $credentials );
|
||||||
|
|
||||||
//assert that login was successfull
|
// Assert that the login was successfull.
|
||||||
//if the login fails, an instance of WP_Error is returned rather than User object
|
// If the login fails, an instance of WP_Error is returned rather than User object.
|
||||||
$this->assertNotWPError( $user );
|
$this->assertNotWPError( $user );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue