diff options
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(); } /** |