From 83366144b3e5e492090f4280c0626f0de20d84ad Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Sun, 3 Nov 2019 22:16:27 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/user.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ); }