Make WordPress Core


Ignore:
Timestamp:
01/17/2024 06:54:36 PM (18 months ago)
Author:
swissspidy
Message:

I18N: Fix duplicate determine_locale() tests added in [57286].

Props johnbillion.
See #58696.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/determineLocale.php

    r57286 r57305  
    301301
    302302    public function test_wp_local_package_global_not_installing() {
    303         $_REQUEST['language'] = 'de_DE';
     303        $GLOBALS['wp_local_package'] = 'de_DE';
    304304        $this->assertSame( 'en_US', determine_locale() );
    305305    }
    306306    public function test_wp_local_package_global_installing() {
    307         $_REQUEST['language'] = 'de_DE';
     307        $GLOBALS['wp_local_package'] = 'de_DE';
    308308        wp_installing( true );
    309309        $this->assertSame( 'de_DE', determine_locale() );
Note: See TracChangeset for help on using the changeset viewer.