WordPress.org

Make WordPress Core

Changeset 568 in tests


Ignore:
Timestamp:
03/08/12 12:18:11 (3 years ago)
Author:
westi
Message:

XMLRPC: Add getOptions test case for feature image support in current theme.

File:
1 edited

Legend:

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

    r567 r568  
    5757        $this->assertEquals( get_stylesheet(), $result['stylesheet']['value'] ); 
    5858        $this->assertTrue( $result['stylesheet']['readonly'] ); 
     59 
     60        $this->assertEquals( current_theme_supports( 'post-thumbnails' ), $result['featured_image']['value'] ); 
     61        $this->assertTrue( $result['featured_image']['readonly'] ); 
    5962 
    6063        // Updatable options 
     
    138141        $this->assertTrue( $result['stylesheet']['readonly'] ); 
    139142 
     143        $this->assertEquals( current_theme_supports( 'post-thumbnails' ), $result['featured_image']['value'] ); 
     144        $this->assertTrue( $result['featured_image']['readonly'] ); 
     145 
    140146        // Updatable options 
    141147        $this->assertEquals( get_option( 'gmt_offset' ), $result['time_zone']['value'] ); 
Note: See TracChangeset for help on using the changeset viewer.