WordPress.org

Make WordPress Core

Changeset 253 in tests


Ignore:
Timestamp:
10/22/09 20:05:12 (4 years ago)
Author:
westi
Message:

Add a test case for the setup of the broken themes global by get_themes() relates to WP#10999.

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_theme.php

    r248 r253  
    304304        $this->assertEquals($expected, $theme_names); 
    305305    } 
     306     
     307    function test_broken_themes() { 
     308        global $wp_broken_themes; 
     309        $themes = get_themes(); 
     310        $expected = array('broken-theme' => array('Name' => 'broken-theme', 'Title' => 'broken-theme', 'Description' => __('Stylesheet is missing.'))); 
     311         
     312        $this->assertEquals($expected, $wp_broken_themes); 
     313    } 
    306314} 
    307315 
Note: See TracChangeset for help on using the changeset viewer.