WordPress.org

Make WordPress Core


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

    r46586 r47122  
    1919
    2020    public function test_context_param() {
    21         // Collection
     21        // Collection.
    2222        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/statuses' );
    2323        $response = rest_get_server()->dispatch( $request );
     
    2525        $this->assertEquals( 'view', $data['endpoints'][0]['args']['context']['default'] );
    2626        $this->assertEqualSets( array( 'embed', 'view', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] );
    27         // Single
     27        // Single.
    2828        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/statuses/publish' );
    2929        $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset for help on using the changeset viewer.