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/getPostType.php

    r46586 r47122  
    6565                $this->assertNotIXRError( $result );
    6666
    67                 // check data types
     67                // Check data types.
    6868                $this->assertInternalType( 'string', $result['name'] );
    6969                $this->assertInternalType( 'string', $result['label'] );
     
    8181                $this->assertInternalType( 'array', $result['supports'] );
    8282
    83                 // check label data types
     83                // Check label data types.
    8484                $this->assertInternalType( 'string', $result['labels']['name'] );
    8585                $this->assertInternalType( 'string', $result['labels']['singular_name'] );
     
    9797                $this->assertInternalType( 'string', $result['labels']['name_admin_bar'] );
    9898
    99                 // check cap data types
     99                // Check cap data types.
    100100                $this->assertInternalType( 'string', $result['cap']['edit_post'] );
    101101                $this->assertInternalType( 'string', $result['cap']['read_post'] );
     
    113113                $this->assertInternalType( 'string', $result['cap']['edit_published_posts'] );
    114114
    115                 // check taxonomy data types
     115                // Check taxonomy data types.
    116116                foreach ( $result['taxonomies'] as $taxonomy ) {
    117117                        $this->assertInternalType( 'string', $taxonomy );
    118118                }
    119119
    120                 // check taxonomy data types
     120                // Check support data types.
    121121                foreach ( $result['supports'] as $key => $value ) {
    122122                        $this->assertInternalType( 'string', $key );
     
    124124                }
    125125
    126                 // Check expected values
     126                // Check expected values.
    127127                $this->assertEquals( $this->cpt_name, $result['name'] );
    128128                foreach ( $this->cpt_args as $key => $value ) {
Note: See TracChangeset for help on using the changeset viewer.