Make WordPress Core

Changeset 46643


Ignore:
Timestamp:
11/03/2019 10:16:27 PM (5 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r46640 r46643  
    8484    public function test_that_you_can_login_with_an_email_that_has_apostrophe() {
    8585
    86         //create the user with an email that has an apostrophe (see test setup)
    87 
    88         //login as the user
     86        // Create the user with an email that has an apostrophe (see test setup).
     87
     88        // Login as the user.
    8989        $credentials = [
    9090            'user_login'    => "testemailaddress'@test.com",
     
    9292        ];
    9393
    94         //attempt to login
     94        // Attempt to login.
    9595        $user = wp_signon( $credentials );
    9696
    97         //assert that login was successfull
    98         //if the login fails, an instance of WP_Error is returned rather than User object
     97        // Assert that the login was successfull.
     98        // If the login fails, an instance of WP_Error is returned rather than User object.
    9999        $this->assertNotWPError( $user );
    100100    }
Note: See TracChangeset for help on using the changeset viewer.