- Timestamp:
- 07/28/2021 10:05:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php
r51367 r51501 216 216 'editor_script' => true, 217 217 'script' => true, 218 'view_script' => true, 218 219 'editor_style' => true, 219 220 'style' => true, … … 238 239 $this->assertNull( $data['editor_script'] ); 239 240 $this->assertNull( $data['script'] ); 241 $this->assertNull( $data['view_script'] ); 240 242 $this->assertNull( $data['editor_style'] ); 241 243 $this->assertNull( $data['style'] ); … … 269 271 'editor_script' => false, 270 272 'script' => false, 273 'view_script' => false, 271 274 'editor_style' => false, 272 275 'style' => false, … … 291 294 $this->assertNull( $data['editor_script'] ); 292 295 $this->assertNull( $data['script'] ); 296 $this->assertNull( $data['view_script'] ); 293 297 $this->assertNull( $data['editor_style'] ); 294 298 $this->assertNull( $data['style'] ); … … 375 379 $data = $response->get_data(); 376 380 $properties = $data['schema']['properties']; 377 $this->assertCount( 2 1, $properties );381 $this->assertCount( 22, $properties ); 378 382 $this->assertArrayHasKey( 'api_version', $properties ); 379 383 $this->assertArrayHasKey( 'title', $properties ); … … 390 394 $this->assertArrayHasKey( 'editor_script', $properties ); 391 395 $this->assertArrayHasKey( 'script', $properties ); 396 $this->assertArrayHasKey( 'view_script', $properties ); 392 397 $this->assertArrayHasKey( 'editor_style', $properties ); 393 398 $this->assertArrayHasKey( 'style', $properties ); … … 501 506 'editor_script', 502 507 'script', 508 'view_script', 503 509 'editor_style', 504 510 'style',
Note: See TracChangeset
for help on using the changeset viewer.