Make WordPress Core


Ignore:
Timestamp:
02/27/2021 05:08:26 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Fix and standardise calls to the tearDown() method in the test suite.

The parent method should be called after any test-specific teardown.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php

    r48937 r50450  
    3131
    3232    public function tearDown() {
    33         parent::tearDown();
    34 
    3533        $this->old_slug_redirect_url = null;
    3634
    3735        remove_filter( 'old_slug_redirect_url', array( $this, 'filter_old_slug_redirect_url' ), 10 );
     36        parent::tearDown();
    3837    }
    3938
Note: See TracChangeset for help on using the changeset viewer.