- Timestamp:
- 11/09/2021 06:58:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r51964 r52079 69 69 $response = rest_get_server()->dispatch( $request ); 70 70 $data = $response->get_data(); 71 $taxonomies = $this->get_public_taxonomies( get_taxonomies( '', 'objects' ) ); 71 $taxonomies = get_taxonomies( '', 'objects' ); 72 unset( $taxonomies['nav_menu'] ); // Menus are not editable by contributors. 73 $taxonomies = $this->get_public_taxonomies( $taxonomies ); 72 74 $this->assertSame( count( $taxonomies ), count( $data ) ); 73 75 $this->assertSame( 'Categories', $data['category']['name'] );
Note: See TracChangeset
for help on using the changeset viewer.