Make WordPress Core

Changeset 46671


Ignore:
Timestamp:
11/05/2019 11:17:01 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in [46670].

See #48145.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r46670 r46671  
    331331
    332332        public function test_get_items_include_query() {
    333                 $id1 = $this->factory->post->create( array(
    334                         'post_status' => 'publish',
    335                         'post_date'   => '2001-02-03 04:05:06',
    336                 ) );
    337                 $id2 = $this->factory->post->create( array(
    338                         'post_status' => 'publish',
    339                         'post_date'   => '2001-02-03 04:05:07',
    340                 ) );
     333                $id1 = $this->factory->post->create(
     334                        array(
     335                                'post_status' => 'publish',
     336                                'post_date'   => '2001-02-03 04:05:06',
     337                        )
     338                );
     339                $id2 = $this->factory->post->create(
     340                        array(
     341                                'post_status' => 'publish',
     342                                'post_date'   => '2001-02-03 04:05:07',
     343                        )
     344                );
    341345
    342346                $request = new WP_REST_Request( 'GET', '/wp/v2/posts' );
    … …  
    350354                $this->assertPostsOrderedBy( '{posts}.post_date DESC' );
    351355
    352                 // 'orderby' => 'include'
     356                // 'orderby' => 'include'.
    353357                $request->set_param( 'orderby', 'include' );
    354358                $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset for help on using the changeset viewer.