Skip to content

Commit 7650460

Browse files
committed
Revert "Restore previous theme"
This reverts commit 76c4db7.
1 parent 0864478 commit 7650460

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tests/phpunit/tests/block-template.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
class Block_Template_Test extends WP_UnitTestCase {
1212
private static $post;
1313

14-
private static $previous_theme;
15-
1614
private static $template_canvas_path = ABSPATH . WPINC . '/template-canvas.php';
1715

1816
public static function wpSetUpBeforeClass() {
19-
self::$previous_theme = get_stylesheet();
20-
2117
switch_theme( 'block-theme' );
2218

2319
// Set up custom template post.
@@ -39,8 +35,6 @@ public static function wpSetUpBeforeClass() {
3935

4036
public static function wpTearDownAfterClass() {
4137
wp_delete_post( self::$post->ID );
42-
43-
switch_theme( self::$previous_theme );
4438
}
4539

4640
public function tear_down() {

0 commit comments

Comments
 (0)