- Timestamp:
- 12/13/2018 10:41:47 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43767-43769
- Property svn:mergeinfo changed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r43571 r44126 897 897 public function test_get_user_invalid_id() { 898 898 wp_set_current_user( self::$user ); 899 $request = new WP_REST_Request( 'GET', '/wp/v2/users/7777' ); 899 900 $request = new WP_REST_Request( 'GET', '/wp/v2/users/' . REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 900 901 $response = rest_get_server()->dispatch( $request ); 901 902 … … 2266 2267 wp_set_current_user( self::$user ); 2267 2268 2268 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/ 7777');2269 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/' . REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 2269 2270 $request['force'] = true; 2270 2271 $request->set_param( 'reassign', false ); … … 2318 2319 $request = new WP_REST_Request( 'DELETE', sprintf( '/wp/v2/users/%d', $user_id ) ); 2319 2320 $request['force'] = true; 2320 $request->set_param( 'reassign', 7777);2321 $request->set_param( 'reassign', REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 2321 2322 $response = rest_get_server()->dispatch( $request ); 2322 2323
Note: See TracChangeset
for help on using the changeset viewer.