WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/27/2021 05:08:26 PM (9 months 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/oembed/controller.php

    r50441 r50450  
    6161
    6262    public function tearDown() {
    63         parent::tearDown();
    6463        /** @var WP_REST_Server $wp_rest_server */
    6564        global $wp_rest_server;
     
    6867        remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10 );
    6968        remove_filter( 'oembed_result', array( $this, 'filter_oembed_result' ), 10 );
     69        parent::tearDown();
    7070    }
    7171
Note: See TracChangeset for help on using the changeset viewer.