Changeset 48807
- Timestamp:
- 08/17/2020 01:40:59 AM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r47923 r48807 646 646 'minItems', 647 647 'maxItems', 648 'uniqueItems', 648 649 ); 649 650 -
branches/5.5/tests/phpunit/tests/rest-api/rest-controller.php
r47923 r48807 266 266 $this->assertArrayHasKey( 'items', $args['somearray'] ); 267 267 268 foreach ( array( 'minItems', 'maxItems' ) as $property ) {268 foreach ( array( 'minItems', 'maxItems', 'uniqueItems' ) as $property ) { 269 269 $this->assertArrayHasKey( $property, $args['somearray'] ); 270 270 } -
branches/5.5/tests/phpunit/tests/rest-api/rest-test-controller.php
r47923 r48807 102 102 ), 103 103 'somearray' => array( 104 'type' => 'array',105 'items' => array(104 'type' => 'array', 105 'items' => array( 106 106 'type' => 'string', 107 107 ), 108 'minItems' => 1, 109 'maxItems' => 10, 110 'context' => array( 'view' ), 108 'minItems' => 1, 109 'maxItems' => 10, 110 'uniqueItems' => true, 111 'context' => array( 'view' ), 111 112 ), 112 113 'someobject' => array(
Note: See TracChangeset
for help on using the changeset viewer.