Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625

File:
1 edited

Legend:

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

    r49566 r50463  
    2727    function tearDown() {
    2828        $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
    29         remove_filter( 'theme_root', array( $this, '_theme_root' ) );
    30         remove_filter( 'stylesheet_root', array( $this, '_theme_root' ) );
    31         remove_filter( 'template_root', array( $this, '_theme_root' ) );
    3229        wp_clean_themes_cache();
    3330        unset( $GLOBALS['wp_themes'] );
Note: See TracChangeset for help on using the changeset viewer.