Make WordPress Core


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

    r46586 r47122  
    555555        $this->assertNotEquals( $_query_vars, $query->query_vars );
    556556
    557         // All values get reset
     557        // All values get reset.
    558558        $query->prepare_query( array( 'number' => 8 ) );
    559559        $this->assertNotEmpty( $query->query_limit );
    560560        $this->assertEquals( 'LIMIT 0, 8', $query->query_limit );
    561561
    562         // All values get reset
     562        // All values get reset.
    563563        $query->prepare_query( array( 'fields' => 'all' ) );
    564564        $this->assertEmpty( $query->query_limit );
     
    11401140
    11411141        $found_count    = count( $q->get_results() );
    1142         $expected_count = 10; // 13 total users minus 3 from query
     1142        $expected_count = 10; // 13 total users minus 3 from query.
    11431143
    11441144        $this->assertContains( "AND user_nicename NOT IN ( 'peter','paul','mary' )", $q->query_where );
     
    12411241
    12421242        $found_count    = count( $q->get_results() );
    1243         $expected_count = 10; // 13 total users minus 3 from query
     1243        $expected_count = 10; // 13 total users minus 3 from query.
    12441244
    12451245        $this->assertContains( "AND user_login NOT IN ( '$user_login1','$user_login2','$user_login3' )", $q->query_where );
     
    14441444     */
    14451445    public function test_get_multiple_roles_with_meta() {
    1446         // Create administrator user + meta
     1446        // Create administrator user + meta.
    14471447        update_user_meta( self::$admin_ids[0], 'mk1', 1 );
    14481448        update_user_meta( self::$admin_ids[0], 'mk2', 1 );
    14491449
    1450         // Create editor user + meta
     1450        // Create editor user + meta.
    14511451        update_user_meta( self::$editor_ids[0], 'mk1', 1 );
    14521452        update_user_meta( self::$editor_ids[0], 'mk2', 2 );
    14531453
    1454         // Create subscriber user + meta
     1454        // Create subscriber user + meta.
    14551455        update_user_meta( self::$sub_ids[0], 'mk1', 1 );
    14561456        update_user_meta( self::$sub_ids[0], 'mk2', 1 );
    14571457
    1458         // Create contributor user + meta
     1458        // Create contributor user + meta.
    14591459        update_user_meta( self::$contrib_id, 'mk1', 1 );
    14601460        update_user_meta( self::$contrib_id, 'mk2', 2 );
    14611461
    1462         // Fetch users
     1462        // Fetch users.
    14631463        $users = get_users(
    14641464            array(
     
    14821482        );
    14831483
    1484         // Check results
     1484        // Check results.
    14851485        $this->assertEquals( 1, count( $users ) );
    14861486        $this->assertSame( self::$editor_ids[0], (int) $users[0]->ID );
Note: See TracChangeset for help on using the changeset viewer.