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/includes/testcase-ajax.php

    r50449 r50450  
    158158     */
    159159    public function tearDown() {
    160         parent::tearDown();
    161160        $_POST = array();
    162161        $_GET  = array();
     
    167166        error_reporting( $this->_error_level );
    168167        set_current_screen( 'front' );
     168        parent::tearDown();
    169169    }
    170170
Note: See TracChangeset for help on using the changeset viewer.