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/rest-api/rest-attachments-controller.php

    r50150 r50450  
    8989
    9090    public function tearDown() {
    91         parent::tearDown();
    92 
    9391        if ( file_exists( $this->test_file ) ) {
    9492            unlink( $this->test_file );
     
    108106            WP_Image_Editor_Mock::$size_return = null;
    109107        }
     108
     109        parent::tearDown();
    110110    }
    111111
Note: See TracChangeset for help on using the changeset viewer.