- Timestamp:
- 03/20/2018 10:34:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-post-type-controller.php
r42343 r42863 201 201 202 202 protected function check_get_posts_response( $response, $context = 'view' ) { 203 $this->assertNot InstanceOf( 'WP_Error',$response );203 $this->assertNotWPError( $response ); 204 204 $response = rest_ensure_response( $response ); 205 205 $this->assertEquals( 200, $response->get_status() ); … … 233 233 234 234 protected function check_get_post_response( $response, $context = 'view' ) { 235 $this->assertNot InstanceOf( 'WP_Error',$response );235 $this->assertNotWPError( $response ); 236 236 $response = rest_ensure_response( $response ); 237 237 $this->assertEquals( 200, $response->get_status() ); … … 244 244 245 245 protected function check_create_post_response( $response ) { 246 $this->assertNot InstanceOf( 'WP_Error',$response );246 $this->assertNotWPError( $response ); 247 247 $response = rest_ensure_response( $response ); 248 248 … … 257 257 258 258 protected function check_update_post_response( $response ) { 259 $this->assertNot InstanceOf( 'WP_Error',$response );259 $this->assertNotWPError( $response ); 260 260 $response = rest_ensure_response( $response ); 261 261
Note: See TracChangeset
for help on using the changeset viewer.