Changeset 38942
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r38832 r38942 868 868 'type' => 'boolean', 869 869 'default' => false, 870 'sanitize_callback' => 'rest_sanitize_request_arg', 870 871 'validate_callback' => 'rest_validate_request_arg', 871 872 ); -
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r38834 r38942 93 93 $this->assertEquals( 'Season 5', $data[0]['name'] ); 94 94 $this->assertEquals( 'The Be Sharps', $data[1]['name'] ); 95 96 // Confirm the empty category "Uncategorized" category appears. 97 $request->set_param( 'hide_empty', 'false' ); 98 $response = $this->server->dispatch( $request ); 99 $data = $response->get_data(); 100 $this->assertEquals( 3, count( $data ) ); 95 101 } 96 102
Note: See TracChangeset
for help on using the changeset viewer.