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/formatting/ExcerptRemoveBlocks.php

    r48937 r50450  
    8282     */
    8383    function tearDown() {
    84         parent::tearDown();
    8584        $registry = WP_Block_Type_Registry::get_instance();
    8685        $registry->unregister( 'core/fake' );
    8786        wp_delete_post( self::$post_id, true );
     87
     88        parent::tearDown();
    8889    }
    8990
Note: See TracChangeset for help on using the changeset viewer.