Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625


git-svn-id: https://develop.svn.wordpress.org/trunk@50463 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-03-01 18:42:49 +00:00
parent 51548e1bf8
commit 2ef42cb78c
39 changed files with 2 additions and 210 deletions

View File

@@ -27,8 +27,6 @@ class Tests_General_wpResourceHints extends WP_UnitTestCase {
function tearDown() {
$GLOBALS['wp_scripts'] = $this->old_wp_scripts;
$GLOBALS['wp_styles'] = $this->old_wp_styles;
add_action( 'wp_default_scripts', 'wp_default_scripts' );
add_action( 'wp_default_styles', 'wp_default_styles' );
parent::tearDown();
}