Tests: Adjust XML-RPC unit tests for [47160].

See #40096.

git-svn-id: https://develop.svn.wordpress.org/trunk@47162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-02-02 03:30:37 +00:00
parent 73e75195eb
commit d5572e9f11
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class Tests_XMLRPC_mw_getPost extends WP_XMLRPC_UnitTestCase {
$this->assertEquals( $post_data->post_excerpt, $result['mt_excerpt'] );
$this->assertEquals( url_to_postid( $result['link'] ), self::$post_id );
$this->assertEquals( '', $result['wp_post_thumbnail'] );
$this->assertEquals( 0, $result['wp_post_thumbnail'] );
remove_theme_support( 'post-thumbnails' );
}
@ -102,7 +102,7 @@ class Tests_XMLRPC_mw_getPost extends WP_XMLRPC_UnitTestCase {
$result = $this->myxmlrpcserver->mw_getPost( array( self::$post_id, 'author', 'author' ) );
$this->assertNotIXRError( $result );
$this->assertInternalType( 'string', $result['wp_post_thumbnail'] );
$this->assertInternalType( 'int', $result['wp_post_thumbnail'] );
$this->assertStringMatchesFormat( '%d', $result['wp_post_thumbnail'] );
$this->assertEquals( $attachment_id, $result['wp_post_thumbnail'] );