- Timestamp:
- 11/10/2016 02:20:09 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r38832 r39191 46 46 $this->assertEquals( 'post_tag', $data['post_tag']['slug'] ); 47 47 $this->assertEquals( false, $data['post_tag']['hierarchical'] ); 48 $this->assertEquals( 'tags', $data['post_tag']['rest_base'] ); 48 49 } 49 50 … … 135 136 $data = $response->get_data(); 136 137 $properties = $data['schema']['properties']; 137 $this->assertEquals( 8, count( $properties ) );138 $this->assertEquals( 9, count( $properties ) ); 138 139 $this->assertArrayHasKey( 'capabilities', $properties ); 139 140 $this->assertArrayHasKey( 'description', $properties ); … … 144 145 $this->assertArrayHasKey( 'show_cloud', $properties ); 145 146 $this->assertArrayHasKey( 'types', $properties ); 147 $this->assertArrayHasKey( 'rest_base', $properties ); 146 148 } 147 149 … … 169 171 $this->assertEquals( $tax_obj->description, $data['description'] ); 170 172 $this->assertEquals( $tax_obj->hierarchical, $data['hierarchical'] ); 173 $this->assertEquals( $tax_obj->rest_base, $data['rest_base'] ); 171 174 $this->assertEquals( rest_url( 'wp/v2/taxonomies' ), $links['collection'][0]['href'] ); 172 175 $this->assertArrayHasKey( 'https://api.w.org/items', $links );
Note: See TracChangeset
for help on using the changeset viewer.