From 30354e5a9b012d9550537c1373524bb8da7703bd Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 13 Apr 2018 00:53:31 +0000 Subject: [PATCH] Tests: Update the REST API fixtures. [42967] included new post statii, but didn't add them to the REST API tests. See #43481. git-svn-id: https://develop.svn.wordpress.org/trunk@42972 602fd350-edb4-49c9-b593-d223f7449a82 --- .../tests/rest-api/rest-posts-controller.php | 16 +++++++++++++++- tests/qunit/fixtures/wp-api-generated.js | 8 ++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rest-api/rest-posts-controller.php b/tests/phpunit/tests/rest-api/rest-posts-controller.php index c0a5397aa0..5152399f21 100644 --- a/tests/phpunit/tests/rest-api/rest-posts-controller.php +++ b/tests/phpunit/tests/rest-api/rest-posts-controller.php @@ -3503,7 +3503,21 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te $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'] ); } diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index 583843fbc1..2f605063fc 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -314,6 +314,10 @@ mockedApiResponse.Schema = { "trash", "auto-draft", "inherit", + "request-pending", + "request-confirmed", + "request-failed", + "request-completed", "any" ], "type": "string" @@ -949,6 +953,10 @@ mockedApiResponse.Schema = { "trash", "auto-draft", "inherit", + "request-pending", + "request-confirmed", + "request-failed", + "request-completed", "any" ], "type": "string"