Make WordPress Core


Ignore:
Timestamp:
05/01/2018 11:45:35 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Update the REST API fixtures.

[42967] included new post statii, but didn't add them to the REST API tests.

Props pento.
Merges [42972] to the 4.9 branch.
See #43481.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r42427 r43072  
    31353135        $this->assertEquals( array(
    31363136            'type' => 'string',
    3137             'enum' => array( 'publish', 'future', 'draft', 'pending', 'private', 'trash', 'auto-draft', 'inherit', 'any' ),
     3137            'enum' => array(
     3138                'publish',
     3139                'future',
     3140                'draft',
     3141                'pending',
     3142                'private',
     3143                'trash',
     3144                'auto-draft',
     3145                'inherit',
     3146                'request-pending',
     3147                'request-confirmed',
     3148                'request-failed',
     3149                'request-completed',
     3150                'any',
     3151            ),
    31383152        ), $status_arg['items'] );
    31393153    }
Note: See TracChangeset for help on using the changeset viewer.