Make WordPress Core


Ignore:
Timestamp:
02/27/2021 05:08:26 PM (5 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/rest-api/rest-plugins-controller.php

    r49951 r50450  
    8484
    8585    public function tearDown() {
    86         parent::tearDown();
    87 
    8886        if ( file_exists( WP_PLUGIN_DIR . '/test-plugin/test-plugin.php' ) ) {
    8987            $this->rmdir( WP_PLUGIN_DIR . '/test-plugin' );
    9088        }
     89
     90        parent::tearDown();
    9191    }
    9292
Note: See TracChangeset for help on using the changeset viewer.