- Timestamp:
- 02/02/2024 12:59:21 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php
r57493 r57521 208 208 'parent' => 'invalid_parent', 209 209 'ancestor' => 'invalid_ancestor', 210 'allowed_blocks' => 'invalid_allowed_blocks', 210 211 'icon' => true, 211 212 'description' => true, … … 238 239 $this->assertSameSets( array( 'invalid_parent' ), $data['parent'] ); 239 240 $this->assertSameSets( array( 'invalid_ancestor' ), $data['ancestor'] ); 241 $this->assertSameSets( array( 'invalid_allowed_blocks' ), $data['allowed_blocks'] ); 240 242 $this->assertNull( $data['icon'] ); 241 243 $this->assertSame( '1', $data['description'] ); … … 284 286 'parent' => false, 285 287 'ancestor' => false, 288 'allowed_blocks' => false, 286 289 'icon' => false, 287 290 'description' => false, … … 314 317 $this->assertSameSets( array(), $data['parent'] ); 315 318 $this->assertSameSets( array(), $data['ancestor'] ); 319 $this->assertSameSets( array(), $data['allowed_blocks'] ); 316 320 $this->assertNull( $data['icon'] ); 317 321 $this->assertSame( '', $data['description'] ); … … 551 555 * @ticket 57585 552 556 * @ticket 59346 557 * @ticket 60403 553 558 */ 554 559 public function test_get_item_schema() { … … 558 563 $data = $response->get_data(); 559 564 $properties = $data['schema']['properties']; 560 $this->assertCount( 3 1, $properties );565 $this->assertCount( 32, $properties ); 561 566 $this->assertArrayHasKey( 'api_version', $properties ); 562 567 $this->assertArrayHasKey( 'name', $properties ); … … 565 570 $this->assertArrayHasKey( 'parent', $properties ); 566 571 $this->assertArrayHasKey( 'ancestor', $properties ); 572 $this->assertArrayHasKey( 'allowed_blocks', $properties ); 567 573 $this->assertArrayHasKey( 'icon', $properties ); 568 574 $this->assertArrayHasKey( 'description', $properties ); … … 697 703 'parent', 698 704 'ancestor', 705 'allowedBlocks', 699 706 'icon', 700 707 'description',
Note: See TracChangeset
for help on using the changeset viewer.