diff options
author | John Blackbourn <johnbillion@git.wordpress.org> | 2021-02-27 17:08:26 +0000 |
---|---|---|
committer | John Blackbourn <johnbillion@git.wordpress.org> | 2021-02-27 17:08:26 +0000 |
commit | 055deeabff74e1a327fd7142f719622f7b6ff81e (patch) | |
tree | 864bf0fec2f21236e9d02e6582f0eef9c388c15c /tests/phpunit/includes/testcase-block-supports.php | |
parent | 3542c3b4c0f40c6df81a6f475491b017f5f92263 (diff) | |
download | wordpress-055deeabff74e1a327fd7142f719622f7b6ff81e.tar.gz wordpress-055deeabff74e1a327fd7142f719622f7b6ff81e.zip |
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
git-svn-id: https://develop.svn.wordpress.org/trunk@50450 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/testcase-block-supports.php')
-rw-r--r-- | tests/phpunit/includes/testcase-block-supports.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/testcase-block-supports.php b/tests/phpunit/includes/testcase-block-supports.php index f54dba8b9f..981bfcd190 100644 --- a/tests/phpunit/includes/testcase-block-supports.php +++ b/tests/phpunit/includes/testcase-block-supports.php @@ -19,12 +19,12 @@ class Block_Supported_Styles_Test extends WP_UnitTestCase { * Tear down each test method. */ public function tearDown() { - parent::tearDown(); - while ( ! empty( $this->registered_block_names ) ) { $block_name = array_pop( $this->registered_block_names ); unregister_block_type( $block_name ); } + + parent::tearDown(); } /** |