Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    1111         */
    1212        public function test_get_users_with_no_role_is_accurate() {
    13                 // Setup users
     13                // Setup users.
    1414                $admin       = self::factory()->user->create(
    1515                        array(
    … …  
    3333                );
    3434
    35                 // Test users
     35                // Test users.
    3636                $users = wp_get_users_with_no_role();
    3737
    … …  
    5353         */
    5454        public function test_get_users_with_no_role_multisite_is_accurate() {
    55                 // Setup users
     55                // Setup users.
    5656                $admin  = self::factory()->user->create(
    5757                        array(
    … …  
    7070                );
    7171
    72                 // Setup blogs
     72                // Setup blogs.
    7373                $blog_1 = (int) self::factory()->blog->create(
    7474                        array(
    … …  
    7777                );
    7878
    79                 // Add editor to blog 1
     79                // Add editor to blog 1.
    8080                add_user_to_blog( $blog_1, $editor, 'editor' );
    8181
    82                 // Test users on root site
     82                // Test users on root site.
    8383                $users = wp_get_users_with_no_role();
    8484                $this->assertSame(
    … …  
    8989                );
    9090
    91                 // Test users counts on blog 1
     91                // Test users counts on blog 1.
    9292                $users = wp_get_users_with_no_role( $blog_1 );
    9393                $this->assertSame( array(), $users );
    9494
    95                 // Add admin to blog 1 with no role
     95                // Add admin to blog 1 with no role.
    9696                add_user_to_blog( $blog_1, $admin, '' );
    9797
    98                 // Re-test users counts on blog 1
     98                // Re-test users counts on blog 1.
    9999                $users = wp_get_users_with_no_role( $blog_1 );
    100100                $this->assertSame(
Note: See TracChangeset for help on using the changeset viewer.