Changeset 46643
- Timestamp:
- 11/03/2019 10:16:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r46640 r46643 84 84 public function test_that_you_can_login_with_an_email_that_has_apostrophe() { 85 85 86 // create the user with an email that has an apostrophe (see test setup)87 88 // login as the user86 // Create the user with an email that has an apostrophe (see test setup). 87 88 // Login as the user. 89 89 $credentials = [ 90 90 'user_login' => "testemailaddress'@test.com", … … 92 92 ]; 93 93 94 // attempt to login94 // Attempt to login. 95 95 $user = wp_signon( $credentials ); 96 96 97 // assert that login was successfull98 // if the login fails, an instance of WP_Error is returned rather than User object97 // Assert that the login was successfull. 98 // If the login fails, an instance of WP_Error is returned rather than User object. 99 99 $this->assertNotWPError( $user ); 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.