Changeset 47753 for trunk/tests/phpunit/tests/rest-api/rest-controller.php
- Timestamp:
- 05/03/2020 07:18:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-controller.php
r47511 r47753 44 44 'format' => 'email', 45 45 ), 46 'someuuid' => array( 47 'type' => 'string', 48 'format' => 'uuid', 49 ), 46 50 ), 47 51 ) … … 202 206 'rest_invalid_date', 203 207 rest_validate_request_arg( '2010-18-18T12:00:00', $this->request, 'somedate' ) 208 ); 209 } 210 211 /** 212 * @ticket 50053 213 */ 214 public function test_validate_schema_format_uuid() { 215 $this->assertTrue( 216 rest_validate_request_arg( '123e4567-e89b-12d3-a456-426655440000', $this->request, 'someuuid' ) 217 ); 218 219 $this->assertErrorResponse( 220 'rest_invalid_uuid', 221 rest_validate_request_arg( '123e4567-e89b-12d3-a456-426655440000X', $this->request, 'someuuid' ) 204 222 ); 205 223 } … … 246 264 'someemail', 247 265 'somehex', 266 'someuuid', 248 267 'someenum', 249 268 'someargoptions', … … 276 295 'someemail', 277 296 'somehex', 297 'someuuid', 278 298 'someenum', 279 299 'someargoptions',
Note: See TracChangeset
for help on using the changeset viewer.