mirror of
git://develop.git.wordpress.org/
synced 2025-05-08 12:55:20 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
253a86bf7c
commit
61018a787a
tests
@ -3134,7 +3134,21 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te
|
||||
$this->assertEquals( 'array', $status_arg['type'] );
|
||||
$this->assertEquals( array(
|
||||
'type' => 'string',
|
||||
'enum' => array( 'publish', 'future', 'draft', 'pending', 'private', 'trash', 'auto-draft', 'inherit', 'any' ),
|
||||
'enum' => array(
|
||||
'publish',
|
||||
'future',
|
||||
'draft',
|
||||
'pending',
|
||||
'private',
|
||||
'trash',
|
||||
'auto-draft',
|
||||
'inherit',
|
||||
'request-pending',
|
||||
'request-confirmed',
|
||||
'request-failed',
|
||||
'request-completed',
|
||||
'any',
|
||||
),
|
||||
), $status_arg['items'] );
|
||||
}
|
||||
|
||||
|
@ -313,6 +313,10 @@ mockedApiResponse.Schema = {
|
||||
"trash",
|
||||
"auto-draft",
|
||||
"inherit",
|
||||
"request-pending",
|
||||
"request-confirmed",
|
||||
"request-failed",
|
||||
"request-completed",
|
||||
"any"
|
||||
],
|
||||
"type": "string"
|
||||
@ -948,6 +952,10 @@ mockedApiResponse.Schema = {
|
||||
"trash",
|
||||
"auto-draft",
|
||||
"inherit",
|
||||
"request-pending",
|
||||
"request-confirmed",
|
||||
"request-failed",
|
||||
"request-completed",
|
||||
"any"
|
||||
],
|
||||
"type": "string"
|
||||
|
Loading…
x
Reference in New Issue
Block a user