- Timestamp:
- 12/29/2016 05:27:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r39191 r39647 120 120 $data = $response->get_data(); 121 121 $properties = $data['schema']['properties']; 122 $this->assertEquals( 8, count( $properties ) );122 $this->assertEquals( 9, count( $properties ) ); 123 123 $this->assertArrayHasKey( 'capabilities', $properties ); 124 124 $this->assertArrayHasKey( 'description', $properties ); … … 127 127 $this->assertArrayHasKey( 'name', $properties ); 128 128 $this->assertArrayHasKey( 'slug', $properties ); 129 $this->assertArrayHasKey( 'supports', $properties ); 129 130 $this->assertArrayHasKey( 'taxonomies', $properties ); 130 131 $this->assertArrayHasKey( 'rest_base', $properties ); … … 180 181 $this->assertEquals( $post_type_obj->cap, $data['capabilities'] ); 181 182 $this->assertEquals( $post_type_obj->labels, $data['labels'] ); 183 $this->assertEquals( get_all_post_type_supports( $post_type_obj->name ), $data['supports'] ); 182 184 } else { 183 185 $this->assertFalse( isset( $data['capabilities'] ) ); 184 186 $this->assertFalse( isset( $data['labels'] ) ); 187 $this->assertFalse( isset( $data['supports'] ) ); 185 188 } 186 189 }
Note: See TracChangeset
for help on using the changeset viewer.