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() ); }