Skip to content

Commit a708f2d

Browse files
committed
update php tests
1 parent ca4f861 commit a708f2d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/phpunit/tests/rest-api/wpRestTemplateAutosavesController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ public function test_get_item_schema_with_data_provider( $rest_base, $template_i
682682
$this->assertArrayHasKey( 'has_theme_file', $properties, 'has_theme_file key should exist in properties.' );
683683
$this->assertArrayHasKey( 'author', $properties, 'author key should exist in properties.' );
684684
$this->assertArrayHasKey( 'modified', $properties, 'modified key should exist in properties.' );
685+
$this->assertArrayHasKey( 'date', $properties, 'date key should exist in properties.' );
685686
$this->assertArrayHasKey( 'parent', $properties, 'Parent key should exist in properties.' );
686687
$this->assertArrayHasKey( 'author_text', $properties, 'author_text key should exist in properties.' );
687688
$this->assertArrayHasKey( 'original_source', $properties, 'original_source key should exist in properties.' );
@@ -700,13 +701,13 @@ public function data_get_item_schema_with_data_provider() {
700701
'templates' => array(
701702
'templates',
702703
self::TEST_THEME . '//' . self::TEMPLATE_NAME,
703-
19,
704+
20,
704705
array( 'is_custom', 'plugin' ),
705706
),
706707
'template parts' => array(
707708
'template-parts',
708709
self::TEST_THEME . '//' . self::TEMPLATE_PART_NAME,
709-
18,
710+
19,
710711
array( 'area' ),
711712
),
712713
);

tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ public function test_get_item_schema_with_data_provider( $rest_base, $template_i
928928
$this->assertArrayHasKey( 'has_theme_file', $properties, 'has_theme_file key should exist in properties.' );
929929
$this->assertArrayHasKey( 'author', $properties, 'author key should exist in properties.' );
930930
$this->assertArrayHasKey( 'modified', $properties, 'modified key should exist in properties.' );
931+
$this->assertArrayHasKey( 'date', $properties, 'date key should exist in properties.' );
931932
$this->assertArrayHasKey( 'parent', $properties, 'Parent key should exist in properties.' );
932933
$this->assertArrayHasKey( 'author_text', $properties, 'author_text key should exist in properties.' );
933934
$this->assertArrayHasKey( 'original_source', $properties, 'original_source key should exist in properties.' );
@@ -947,13 +948,13 @@ public function data_get_item_schema_with_data_provider() {
947948
'templates' => array(
948949
'templates',
949950
self::TEST_THEME . '//' . self::TEMPLATE_NAME,
950-
19,
951+
20,
951952
array( 'is_custom', 'plugin' ),
952953
),
953954
'template parts' => array(
954955
'template-parts',
955956
self::TEST_THEME . '//' . self::TEMPLATE_PART_NAME,
956-
18,
957+
19,
957958
array( 'area' ),
958959
),
959960
);

0 commit comments

Comments
 (0)