Make WordPress Core

Changeset 47162


Ignore:
Timestamp:
02/02/2020 03:30:37 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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

See #40096.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php

    r47122 r47162  
    8585        $this->assertEquals( url_to_postid( $result['link'] ), self::$post_id );
    8686
    87         $this->assertEquals( '', $result['wp_post_thumbnail'] );
     87        $this->assertEquals( 0, $result['wp_post_thumbnail'] );
    8888
    8989        remove_theme_support( 'post-thumbnails' );
     
    103103        $this->assertNotIXRError( $result );
    104104
    105         $this->assertInternalType( 'string', $result['wp_post_thumbnail'] );
     105        $this->assertInternalType( 'int', $result['wp_post_thumbnail'] );
    106106        $this->assertStringMatchesFormat( '%d', $result['wp_post_thumbnail'] );
    107107        $this->assertEquals( $attachment_id, $result['wp_post_thumbnail'] );
Note: See TracChangeset for help on using the changeset viewer.