Make WordPress Core


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

    r50284 r50450  
    4444
    4545    public function tearDown() {
    46         parent::tearDown();
    47 
    4846        // Cleanup all the global state.
    4947        unset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], $GLOBALS['wp_rest_application_password_status'], $GLOBALS['wp_rest_application_password_uuid'] );
     48
     49        parent::tearDown();
    5050    }
    5151
Note: See TracChangeset for help on using the changeset viewer.