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-schema-setup.php

    r50072 r50450  
    2828
    2929    public function tearDown() {
    30         parent::tearDown();
    31 
    3230        /** @var WP_REST_Server $wp_rest_server */
    3331        global $wp_rest_server;
     
    3533
    3634        remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
     35        parent::tearDown();
    3736    }
    3837
Note: See TracChangeset for help on using the changeset viewer.