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:
Vladimir Bryzgalov
2026-05-16 19:20:00 +05:00
parent 68db1256e7
commit 0565357b5e
2 changed files with 18 additions and 1 deletions
+6 -1
View File
@@ -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();
}