Editor: Replace some accidental double setting up of tests with proper tearing down.

See #55505, #58955


git-svn-id: https://develop.svn.wordpress.org/trunk@56479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2023-08-27 20:32:16 +00:00
parent 28cb706629
commit 13becfa68b
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ class Test_Block_Supports_Border extends WP_UnitTestCase {
public function tear_down() {
unregister_block_type( $this->test_block_name );
$this->test_block_name = null;
parent::set_up();
parent::tear_down();
}
/**

View File

@ -18,7 +18,7 @@ class Tests_Block_Supports_Colors extends WP_UnitTestCase {
public function tear_down() {
unregister_block_type( $this->test_block_name );
$this->test_block_name = null;
parent::set_up();
parent::tear_down();
}
/**

View File

@ -18,7 +18,7 @@ class Test_Block_Supports_Shadow extends WP_UnitTestCase {
public function tear_down() {
unregister_block_type( $this->test_block_name );
$this->test_block_name = null;
parent::set_up();
parent::tear_down();
}
/**

View File

@ -18,7 +18,7 @@ class Test_Block_Supports_Spacing extends WP_UnitTestCase {
public function tear_down() {
unregister_block_type( $this->test_block_name );
$this->test_block_name = null;
parent::set_up();
parent::tear_down();
}
/**