Make WordPress Core


Ignore:
Timestamp:
09/12/2013 06:37:32 PM (12 years ago)
Author:
nacin
Message:

Use @expectedDeprecated. see #25282, [25408].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme.php

    r25402 r25409  
    77 */
    88class Tests_Theme extends WP_UnitTestCase {
    9     protected $deprecated_functions = array( 'get_theme', 'get_themes', 'get_theme_data', 'get_current_theme' );
    109    protected $theme_slug = 'twentyeleven';
    1110    protected $theme_name = 'Twenty Eleven';
     
    3534    }
    3635
     36    /**
     37     * @expectedDeprecated get_theme
     38     * @expectedDeprecated get_themes
     39     */
    3740    function test_get_themes_default() {
    3841        $themes = get_themes();
     
    4548    }
    4649
     50    /**
     51     * @expectedDeprecated get_theme
     52     * @expectedDeprecated get_themes
     53     */
    4754    function test_get_theme() {
    4855        $themes = get_themes();
     
    6875    }
    6976
     77    /**
     78     * @expectedDeprecated get_themes
     79     */
    7080    function test_get_themes_contents() {
    7181        $themes = get_themes();
     
    154164    /**
    155165     * @ticket 20897
     166     * @expectedDeprecated get_theme_data
    156167     */
    157168    function test_extra_theme_headers() {
     
    171182    }
    172183
     184    /**
     185     * @expectedDeprecated get_themes
     186     * @expectedDeprecated get_current_theme
     187     */
    173188    function test_switch_theme() {
    174189        $themes = get_themes();
Note: See TracChangeset for help on using the changeset viewer.