mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).
While we're at it, remove unnecessary `tearDown()` code. See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,8 +20,9 @@ class Tests_Shortcode extends WP_UnitTestCase {
|
||||
|
||||
function tearDown() {
|
||||
global $shortcode_tags;
|
||||
foreach ( $this->shortcodes as $shortcode )
|
||||
foreach ( $this->shortcodes as $shortcode ) {
|
||||
unset( $shortcode_tags[ $shortcode ] );
|
||||
}
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user