Changeset 43767
- Timestamp:
- 10/19/2018 11:56:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/tests/phpunit/tests/rest-api/rest-users-controller.php
r43445 r43767 799 799 public function test_get_user_invalid_id() { 800 800 wp_set_current_user( self::$user ); 801 $request = new WP_REST_Request( 'GET', '/wp/v2/users/ 100');801 $request = new WP_REST_Request( 'GET', '/wp/v2/users/' . REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 802 802 $response = $this->server->dispatch( $request ); 803 803 … … 2070 2070 wp_set_current_user( self::$user ); 2071 2071 2072 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/ 100');2072 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/' . REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 2073 2073 $request['force'] = true; 2074 2074 $request->set_param( 'reassign', false ); … … 2120 2120 $request = new WP_REST_Request( 'DELETE', sprintf( '/wp/v2/users/%d', $user_id ) ); 2121 2121 $request['force'] = true; 2122 $request->set_param( 'reassign', 100);2122 $request->set_param( 'reassign', REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 2123 2123 $response = $this->server->dispatch( $request ); 2124 2124
Note: See TracChangeset
for help on using the changeset viewer.