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_wp_getPost.php

    r684 r699  
    6060        $this->assertInternalType( 'bool', $result['sticky'] );
    6161        $this->assertInternalType( 'string', $result['post_format'] );
    62         $this->assertInternalType( 'string', $result['post_thumbnail'] );
     62        $this->assertInternalType( 'array', $result['post_thumbnail'] );
    6363
    6464        // Check expected values
     
    7171        $this->assertEquals( $this->post_data['post_content'], $result['post_content'] );
    7272        $this->assertEquals( url_to_postid( $result['link'] ), $this->post_id );
    73         $this->assertEquals( '', $result['post_thumbnail'] );
    7473
    7574        remove_theme_support( 'post-thumbnails' );
Note: See TracChangeset for help on using the changeset viewer.