WordPress.org

Make WordPress Core

Ticket #20409: 20409_unittests.patch

File 20409_unittests.patch, 1.1 KB (added by maxcutler, 3 years ago)
  • wp-testcase/test-xmlrpc-api/test_wp_getPost.php

     
    5959                $this->assertInternalType( 'string', $result['ping_status'] ); 
    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 
    6565                $this->assertStringMatchesFormat( '%d', $result['post_id'] ); 
     
    7070                $this->assertEquals( $this->post_data['post_excerpt'], $result['post_excerpt'] ); 
    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' ); 
    7675        }