test(wpmc S4): WP_Query stub + wp_query globals cleanup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -24,7 +24,12 @@ abstract class TestCase extends BaseTestCase
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
unset($_SERVER['REQUEST_URI']);
|
||||
unset(
|
||||
$_SERVER['REQUEST_URI'],
|
||||
$GLOBALS['wp_query'],
|
||||
$GLOBALS['wp_the_query'],
|
||||
$GLOBALS['post']
|
||||
);
|
||||
Monkey\tearDown();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user