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/xmlrpc/wp/getUsers.php

    r46586 r47122  
    2727                $this->assertNotIXRError( $result );
    2828
    29                 // check data types
     29                // Check data types.
    3030                $this->assertInternalType( 'string', $result[0]['user_id'] );
    3131                $this->assertStringMatchesFormat( '%d', $result[0]['user_id'] );
    … …  
    6363                }
    6464
    65                 // test a single role ('editor')
     65                // Test a single role ('editor').
    6666                $filter  = array( 'role' => 'editor' );
    6767                $results = $this->myxmlrpcserver->wp_getUsers( array( 1, 'administrator', 'administrator', $filter ) );
    … …  
    7070                $this->assertEquals( $editor_id, $results[0]['user_id'] );
    7171
    72                 // test 'authors', which should return all non-subscribers
     72                // Test 'authors', which should return all non-subscribers.
    7373                $filter2  = array( 'who' => 'authors' );
    7474                $results2 = $this->myxmlrpcserver->wp_getUsers( array( 1, 'administrator', 'administrator', $filter2 ) );
    … …  
    102102                } while ( count( $presults ) > 0 );
    103103
    104                 // verify that $user_ids matches $users_found
     104                // Verify that $user_ids matches $users_found.
    105105                $this->assertEquals( 0, count( array_diff( $user_ids, $users_found ) ) );
    106106        }
Note: See TracChangeset for help on using the changeset viewer.