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

    r46586 r47122  
    4242        $this->assertNotIXRError( $result );
    4343
    44         // Check data types
     44        // Check data types.
    4545        $this->assertInternalType( 'string', $result['post_id'] );
    4646        $this->assertInternalType( 'string', $result['post_title'] );
     
    6464        $this->assertInternalType( 'array', $result['custom_fields'] );
    6565
    66         // Check expected values
     66        // Check expected values.
    6767        $this->assertStringMatchesFormat( '%d', $result['post_id'] );
    6868        $this->assertEquals( $this->post_data['post_title'], $result['post_title'] );
     
    8585        $this->assertNotIXRError( $result );
    8686
    87         // when no fields are requested, only the IDs should be returned
     87        // When no fields are requested, only the IDs should be returned.
    8888        $this->assertEquals( 1, count( $result ) );
    8989        $this->assertEquals( array( 'post_id' ), array_keys( $result ) );
     
    9595
    9696        $this->assertArrayHasKey( 'post_id', $result );
    97         $this->assertArrayHasKey( 'link', $result ); // random field from 'posts' group
     97        $this->assertArrayHasKey( 'link', $result ); // Random field from 'posts' group.
    9898        $this->assertArrayHasKey( 'terms', $result );
    9999        $this->assertArrayHasKey( 'custom_fields', $result );
Note: See TracChangeset for help on using the changeset viewer.