- Timestamp:
- 01/03/2020 07:22:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r46671 r47037 3920 3920 3921 3921 /** 3922 * @ticket 48401 3923 */ 3924 public function test_get_item_schema_issues_doing_it_wrong_when_taxonomy_name_is_already_set_in_properties() { 3925 $this->setExpectedIncorrectUsage( 'register_taxonomy' ); 3926 3927 // Register a taxonomy with 'status' as name. 3928 register_taxonomy( 'status', 'post', array( 'show_in_rest' => true ) ); 3929 3930 // Re-initialize the controller 3931 $controller = new WP_REST_Posts_Controller( 'post' ); 3932 $controller->register_routes(); 3933 } 3934 3935 /** 3922 3936 * @ticket 39805 3923 3937 */
Note: See TracChangeset
for help on using the changeset viewer.