WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (8 months 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/l10n/loadTextdomainJustInTime.php

    r50456 r50463  
    4141    public function tearDown() {
    4242        $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
    43         remove_filter( 'theme_root', array( $this, 'filter_theme_root' ) );
    44         remove_filter( 'stylesheet_root', array( $this, 'filter_theme_root' ) );
    45         remove_filter( 'template_root', array( $this, 'filter_theme_root' ) );
    4643        wp_clean_themes_cache();
    4744        unset( $GLOBALS['wp_themes'] );
Note: See TracChangeset for help on using the changeset viewer.