Changeset 47162
- Timestamp:
- 02/02/2020 03:30:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
r47122 r47162 85 85 $this->assertEquals( url_to_postid( $result['link'] ), self::$post_id ); 86 86 87 $this->assertEquals( '', $result['wp_post_thumbnail'] );87 $this->assertEquals( 0, $result['wp_post_thumbnail'] ); 88 88 89 89 remove_theme_support( 'post-thumbnails' ); … … 103 103 $this->assertNotIXRError( $result ); 104 104 105 $this->assertInternalType( ' string', $result['wp_post_thumbnail'] );105 $this->assertInternalType( 'int', $result['wp_post_thumbnail'] ); 106 106 $this->assertStringMatchesFormat( '%d', $result['wp_post_thumbnail'] ); 107 107 $this->assertEquals( $attachment_id, $result['wp_post_thumbnail'] );
Note: See TracChangeset
for help on using the changeset viewer.