From 0b7165e60d4c0d8c22c1fd736ed8a5335a8f4439 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 17 Jan 2024 18:54:36 +0000 Subject: [PATCH] I18N: Fix duplicate `determine_locale()` tests added in [57286]. Props johnbillion. See #58696. git-svn-id: https://develop.svn.wordpress.org/trunk@57305 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/l10n/determineLocale.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/l10n/determineLocale.php b/tests/phpunit/tests/l10n/determineLocale.php index 3a675dc515..ca8c0bafec 100644 --- a/tests/phpunit/tests/l10n/determineLocale.php +++ b/tests/phpunit/tests/l10n/determineLocale.php @@ -300,11 +300,11 @@ class Tests_L10n_DetermineLocale extends WP_UnitTestCase { } public function test_wp_local_package_global_not_installing() { - $_REQUEST['language'] = 'de_DE'; + $GLOBALS['wp_local_package'] = 'de_DE'; $this->assertSame( 'en_US', determine_locale() ); } public function test_wp_local_package_global_installing() { - $_REQUEST['language'] = 'de_DE'; + $GLOBALS['wp_local_package'] = 'de_DE'; wp_installing( true ); $this->assertSame( 'de_DE', determine_locale() ); }