Changeset 49922
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r49790 r49922 966 966 'description' => __( 'Type attribution for the term.' ), 967 967 'type' => 'string', 968 'enum' => array _keys( get_taxonomies()),968 'enum' => array( $this->taxonomy ), 969 969 'context' => array( 'view', 'embed', 'edit' ), 970 970 'readonly' => true, -
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r49603 r49922 1141 1141 $this->assertArrayHasKey( 'slug', $properties ); 1142 1142 $this->assertArrayHasKey( 'taxonomy', $properties ); 1143 $this->assertSame( array _keys( get_taxonomies()), $properties['taxonomy']['enum'] );1143 $this->assertSame( array( 'category' ), $properties['taxonomy']['enum'] ); 1144 1144 } 1145 1145 -
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r49603 r49922 1234 1234 $this->assertArrayHasKey( 'slug', $properties ); 1235 1235 $this->assertArrayHasKey( 'taxonomy', $properties ); 1236 $this->assertSame( array _keys( get_taxonomies()), $properties['taxonomy']['enum'] );1236 $this->assertSame( array( 'post_tag' ), $properties['taxonomy']['enum'] ); 1237 1237 } 1238 1238
Note: See TracChangeset
for help on using the changeset viewer.