WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (10 months 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/rest-api/rest-revisions-controller.php

    r46586 r47122  
    107107
    108108    public function test_context_param() {
    109         // Collection
     109        // Collection.
    110110        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/posts/' . self::$post_id . '/revisions' );
    111111        $response = rest_get_server()->dispatch( $request );
     
    113113        $this->assertEquals( 'view', $data['endpoints'][0]['args']['context']['default'] );
    114114        $this->assertEqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );
    115         // Single
     115        // Single.
    116116        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/posts/' . self::$post_id . '/revisions/' . $this->revision_1->ID );
    117117        $response = rest_get_server()->dispatch( $request );
     
    129129        $this->assertCount( $this->total_revisions, $data );
    130130
    131         // Reverse chron
     131        // Reverse chronology.
    132132        $this->assertEquals( $this->revision_id3, $data[0]['id'] );
    133133        $this->check_get_revision_response( $data[0], $this->revision_3 );
     
    282282        $this->assertErrorResponse( 'rest_trash_not_supported', $response, 501 );
    283283
    284         // Ensure the revision still exists
     284        // Ensure the revision still exists.
    285285        $this->assertNotNull( get_post( $this->revision_id1 ) );
    286286    }
Note: See TracChangeset for help on using the changeset viewer.