WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/27/2012 12:10:27 AM (10 years ago)
Author:
ryan
Message:

Update post thumbnail tests to reflects changes made for #WP20409. Props maxcutler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_mw_getRecentPosts.php

    r684 r699  
    8585
    8686            $this->assertEquals( '', $result['wp_post_thumbnail'] );
    87             $this->assertEquals( '', $result['wp_post_thumbnail_url'] );
    8887        }
    8988
     
    115114            $this->assertInternalType( 'string', $result['wp_post_thumbnail'] );
    116115            $this->assertStringMatchesFormat( '%d', $result['wp_post_thumbnail'] );
    117             $this->assertInternalType( 'string', $result['wp_post_thumbnail_url'] );
    118116
    119117            if( ! empty( $result['wp_post_thumbnail'] ) || $result['postid'] == $this->post_id ) {
     
    121119
    122120                $this->assertEquals( $attachment_id, $result['wp_post_thumbnail'] );
    123                 $this->assertEquals( wp_get_attachment_url( $attachment_id ), $result['wp_post_thumbnail_url'] );
    124121            }
    125122        }
Note: See TracChangeset for help on using the changeset viewer.