Make WordPress Core


Ignore:
Timestamp:
02/27/2021 05:08:26 PM (3 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/blocks/block-context.php

    r48937 r50450  
    4545     */
    4646    public function tearDown() {
    47         parent::tearDown();
    48 
    4947        while ( ! empty( $this->registered_block_names ) ) {
    5048            $block_name = array_pop( $this->registered_block_names );
    5149            unregister_block_type( $block_name );
    5250        }
     51
     52        parent::tearDown();
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.