From 2ab4c1f74af711c0245e62ab81d69dbacc9dd8bf Mon Sep 17 00:00:00 2001 From: kagg-design Date: Thu, 22 Aug 2024 23:47:34 +0300 Subject: [PATCH] Fix unit tests. --- .tests/php/unit/Settings/SystemInfoTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tests/php/unit/Settings/SystemInfoTest.php b/.tests/php/unit/Settings/SystemInfoTest.php index 0451b70e..b2f82b6c 100644 --- a/.tests/php/unit/Settings/SystemInfoTest.php +++ b/.tests/php/unit/Settings/SystemInfoTest.php @@ -42,7 +42,7 @@ class SystemInfoTest extends HCaptchaTestCase { * @return void */ public function tearDown(): void { - unset( $GLOBALS['wpdb'], $_SERVER, $_SESSION ); + unset( $GLOBALS['wpdb'], $_SERVER['SERVER_SOFTWARE'], $_SESSION ); parent::tearDown(); }