Make WordPress Core


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

    r50456 r50463  
    2727        }
    2828
    29         public function tearDown() {
    30                 remove_filter( 'plugin_locale', array( $this, 'store_locale' ) );
    31                 remove_filter( 'theme_locale', array( $this, 'store_locale' ) );
    32 
    33                 parent::tearDown();
    34         }
    35 
    3629        public function store_locale( $locale ) {
    3730                $this->locale = $locale;
Note: See TracChangeset for help on using the changeset viewer.