Changeset 43340
- Timestamp:
- 06/11/2018 05:54:19 PM (6 years ago)
- Location:
- trunk/tests/phpunit/tests/rest-api
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php
r42724 r43340 15 15 16 16 public static function wpSetUpBeforeClass( $factory ) { 17 self::$wp_meta_keys_saved = $GLOBALS['wp_meta_keys'];17 self::$wp_meta_keys_saved = isset( $GLOBALS['wp_meta_keys'] ) ? $GLOBALS['wp_meta_keys'] : array(); 18 18 self::$post_id = $factory->post->create(); 19 19 } -
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r43087 r43340 885 885 public function test_get_user_invalid_id() { 886 886 wp_set_current_user( self::$user ); 887 $request = new WP_REST_Request( 'GET', '/wp/v2/users/ 100' );887 $request = new WP_REST_Request( 'GET', '/wp/v2/users/7777' ); 888 888 $response = rest_get_server()->dispatch( $request ); 889 889 … … 2249 2249 wp_set_current_user( self::$user ); 2250 2250 2251 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/ 100' );2251 $request = new WP_REST_Request( 'DELETE', '/wp/v2/users/7777' ); 2252 2252 $request['force'] = true; 2253 2253 $request->set_param( 'reassign', false ); … … 2301 2301 $request = new WP_REST_Request( 'DELETE', sprintf( '/wp/v2/users/%d', $user_id ) ); 2302 2302 $request['force'] = true; 2303 $request->set_param( 'reassign', 100);2303 $request->set_param( 'reassign', 7777 ); 2304 2304 $response = rest_get_server()->dispatch( $request ); 2305 2305
Note: See TracChangeset
for help on using the changeset viewer.