File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ public function tearDown(): void {
2323
2424 // Reset globals to prevent polluting other tests.
2525 global $ pagenow , $ post ;
26+ // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Resetting globals in test tearDown.
2627 $ pagenow = null ;
27- $ post = null ;
28+ // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Resetting globals in test tearDown.
29+ $ post = null ;
2830 }
2931
3032 /**
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public function tearDown(): void {
2323
2424 // Reset global $current_screen to prevent polluting other tests.
2525 global $ current_screen ;
26+ // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Resetting globals in test tearDown.
2627 $ current_screen = null ;
2728 }
2829
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public function tearDown(): void {
2323
2424 // Reset globals to prevent polluting other tests.
2525 global $ pagenow ;
26+ // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Resetting globals in test tearDown.
2627 $ pagenow = null ;
2728 }
2829
You can’t perform that action at this time.
0 commit comments