diff --git a/tests/phpunit/tests/l10n/getLocale.php b/tests/phpunit/tests/l10n/getLocale.php index 4c4fe8bb02..64b9900ab4 100644 --- a/tests/phpunit/tests/l10n/getLocale.php +++ b/tests/phpunit/tests/l10n/getLocale.php @@ -18,14 +18,14 @@ class Tests_L10n_GetLocale extends WP_UnitTestCase { } public function test_local_option_should_take_precedence_on_multisite() { - global $locale; - $old_locale = $locale; - $locale = null; - if ( ! is_multisite() ) { $this->markTestSkipped( __METHOD__ . ' requires Multisite' ); } + global $locale; + $old_locale = $locale; + $locale = null; + update_option( 'WPLANG', 'en_GB' ); update_site_option( 'WPLANG', 'es_ES' ); @@ -36,14 +36,14 @@ class Tests_L10n_GetLocale extends WP_UnitTestCase { } public function test_network_option_should_be_fallback_on_multisite() { - global $locale; - $old_locale = $locale; - $locale = null; - if ( ! is_multisite() ) { $this->markTestSkipped( __METHOD__ . ' requires Multisite' ); } + global $locale; + $old_locale = $locale; + $locale = null; + update_site_option( 'WPLANG', 'es_ES' ); $found = get_locale(); @@ -53,14 +53,14 @@ class Tests_L10n_GetLocale extends WP_UnitTestCase { } public function test_option_should_be_respected_on_nonmultisite() { - global $locale; - $old_locale = $locale; - $locale = null; - if ( is_multisite() ) { $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite' ); } + global $locale; + $old_locale = $locale; + $locale = null; + update_option( 'WPLANG', 'es_ES' ); $found = get_locale();