Make WordPress Core


Ignore:
Timestamp:
02/27/2021 05:08:26 PM (6 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/functions/referer.php

    r49006 r50450  
    1919
    2020        public function tearDown() {
    21                 parent::tearDown();
    22 
    2321                $_SERVER['HTTP_REFERER']      = '';
    2422                $_SERVER['REQUEST_URI']       = '';
    2523                $_REQUEST['_wp_http_referer'] = '';
     24
     25                parent::tearDown();
    2626        }
    2727
Note: See TracChangeset for help on using the changeset viewer.