- Timestamp:
- 08/15/2019 09:08:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r45424 r45811 2523 2523 public function test_get_item_schema_show_avatar() { 2524 2524 update_option( 'show_avatars', false ); 2525 2526 // Re-initialize the controller to cache-bust schemas from prior test runs. 2527 $GLOBALS['wp_rest_server']->override_by_default = true; 2528 $controller = new WP_REST_Users_Controller(); 2529 $controller->register_routes(); 2530 $GLOBALS['wp_rest_server']->override_by_default = false; 2531 2525 2532 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/users' ); 2526 2533 $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset
for help on using the changeset viewer.