WordPress.org

Make WordPress Core

Changeset 616 in tests


Ignore:
Timestamp:
04/05/12 20:57:53 (3 years ago)
Author:
nacin
Message:

Add another assertion to test_wp_get_themes_default().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_theme.php

    r615 r616  
    1515        $themes = wp_get_themes(); 
    1616        $this->assertInstanceOf( 'WP_Theme', $themes[ $this->theme_slug ] ); 
    17         $this->assertEquals( $themes[ $this->theme_slug ], wp_get_theme( $this->theme_slug ) ); 
    1817        $this->assertEquals( $this->theme_name, $themes[ $this->theme_slug ]->get('Name') ); 
     18 
     19        $single_theme = wp_get_theme( $this->theme_slug ); 
     20        $this->assertEquals( $single_theme->get('Name'), $themes[ $this->theme_slug ]->get('Name') ); 
     21        $this->assertEquals( $themes[ $this->theme_slug ], $single_theme ); 
    1922    } 
    2023 
Note: See TracChangeset for help on using the changeset viewer.