Make WordPress Core


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

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

File:
1 edited

Legend:

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

    r25402 r25409  
    77 */
    88class Tests_Theme_ThemeDir extends WP_UnitTestCase {
    9         protected $deprecated_functions = array( 'get_theme', 'get_themes', 'get_theme_data', 'get_current_theme', 'get_broken_themes' );
    109
    1110        function setUp() {
     
    4140        }
    4241
     42        /**
     43         * @expectedDeprecated get_theme
     44         * @expectedDeprecated get_themes
     45         */
    4346        function test_theme_default() {
    4447                $themes = get_themes();
     
    6871        }
    6972
     73        /**
     74         * @expectedDeprecated get_theme
     75         * @expectedDeprecated get_themes
     76         */
    7077        function test_theme_sandbox() {
    7178                $theme = get_theme('Sandbox');
     
    99106        }
    100107
    101         // a css only theme
     108        /**
     109         * A CSS-only theme
     110         *
     111         * @expectedDeprecated get_themes
     112         */
    102113        function test_theme_stylesheet_only() {
    103114                $themes = get_themes();
     
    127138        }
    128139
     140        /**
     141         * @expectedDeprecated get_themes
     142         */
    129143        function test_theme_list() {
    130144                $themes = get_themes();
     
    154168        }
    155169
     170        /**
     171         * @expectedDeprecated get_themes
     172         * @expectedDeprecated get_broken_themes
     173         */
    156174        function test_broken_themes() {
    157175                $themes = get_themes();
     
    166184        }
    167185
     186        /**
     187         * @expectedDeprecated get_themes
     188         */
    168189        function test_page_templates() {
    169190                $themes = get_themes();
     
    176197        }
    177198
     199        /**
     200         * @expectedDeprecated get_theme_data
     201         */
    178202        function test_get_theme_data_top_level() {
    179203                $theme_data = get_theme_data( DIR_TESTDATA . '/themedir1/theme1/style.css' );
     
    192216        }
    193217
     218        /**
     219         * @expectedDeprecated get_theme_data
     220         */
    194221        function test_get_theme_data_subdir() {
    195222                $theme_data = get_theme_data( $this->theme_root . '/subdir/theme2/style.css' );
Note: See TracChangeset for help on using the changeset viewer.