Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 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/countUsers.php

    r46586 r47122  
    1313     */
    1414    public function test_count_users_is_accurate( $strategy ) {
    15         // Setup users
     15        // Setup users.
    1616        $admin       = self::factory()->user->create(
    1717            array(
     
    5050        );
    5151
    52         // Test user counts
     52        // Test user counts.
    5353        $count = count_users( $strategy );
    5454
     
    7777     */
    7878    public function test_count_users_multisite_is_accurate( $strategy ) {
    79         // Setup users
     79        // Setup users.
    8080        $admin       = self::factory()->user->create(
    8181            array(
     
    114114        );
    115115
    116         // Setup blogs
     116        // Setup blogs.
    117117        $blog_1 = (int) self::factory()->blog->create(
    118118            array(
     
    126126        );
    127127
    128         // Add users to blogs
     128        // Add users to blogs.
    129129        add_user_to_blog( $blog_1, $subscriber, 'editor' );
    130130        add_user_to_blog( $blog_2, $none, 'contributor' );
    131131
    132         // Test users counts on root site
     132        // Test users counts on root site.
    133133        $count = count_users( $strategy );
    134134
     
    146146        );
    147147
    148         // Test users counts on blog 1
     148        // Test users counts on blog 1.
    149149        switch_to_blog( $blog_1 );
    150150        $count = count_users( $strategy );
     
    161161        );
    162162
    163         // Test users counts on blog 2
     163        // Test users counts on blog 2.
    164164        switch_to_blog( $blog_2 );
    165165        $count = count_users( $strategy );
     
    214214    public function test_count_users_is_accurate_with_multiple_roles( $strategy ) {
    215215
    216         // Setup users
     216        // Setup users.
    217217        $admin  = self::factory()->user->create(
    218218            array(
     
    236236        );
    237237
    238         // Test user counts
     238        // Test user counts.
    239239        $count = count_users( $strategy );
    240240
Note: See TracChangeset for help on using the changeset viewer.