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/WPTheme.php

    r48939 r50463  
    2121    function tearDown() {
    2222        $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
    23         remove_filter( 'theme_root', array( $this, '_theme_root' ) );
    24         remove_filter( 'stylesheet_root', array( $this, '_theme_root' ) );
    25         remove_filter( 'template_root', array( $this, '_theme_root' ) );
    2623        wp_clean_themes_cache();
    2724        unset( $GLOBALS['wp_themes'] );
Note: See TracChangeset for help on using the changeset viewer.