mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Misc test enhancements.
See #51344 git-svn-id: https://develop.svn.wordpress.org/trunk@49606 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cd9ed5e3ad
commit
82e44bc702
@ -7,7 +7,7 @@ abstract class WP_Test_REST_TestCase extends WP_UnitTestCase {
|
||||
$response = $response->as_error();
|
||||
}
|
||||
|
||||
$this->assertInstanceOf( 'WP_Error', $response );
|
||||
$this->assertWPError( $response );
|
||||
$this->assertEquals( $code, $response->get_error_code() );
|
||||
|
||||
if ( null !== $status ) {
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
* @group date
|
||||
*/
|
||||
class Tests_WP_Date_Query extends WP_UnitTestCase {
|
||||
/**
|
||||
* @var WP_Date_Query $q
|
||||
*/
|
||||
public $q;
|
||||
|
||||
public function setUp() {
|
||||
|
||||
@ -38,7 +38,7 @@ class WP_Test_REST_Autosaves_Controller extends WP_Test_REST_Post_Type_Controlle
|
||||
}
|
||||
|
||||
protected function check_create_autosave_response( $response ) {
|
||||
$this->assertNotInstanceOf( 'WP_Error', $response );
|
||||
$this->assertNotWPError( $response );
|
||||
$response = rest_ensure_response( $response );
|
||||
$data = $response->get_data();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user