Changeset 36741
- Timestamp:
- 02/26/2016 08:28:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/getLocale.php
r36740 r36741 19 19 20 20 public function test_local_option_should_take_precedence_on_multisite() { 21 if ( ! is_multisite() ) { 22 $this->markTestSkipped( __METHOD__ . ' requires Multisite' ); 23 } 24 21 25 global $locale; 22 26 $old_locale = $locale; 23 27 $locale = null; 24 25 if ( ! is_multisite() ) {26 $this->markTestSkipped( __METHOD__ . ' requires Multisite' );27 }28 28 29 29 update_option( 'WPLANG', 'en_GB' ); … … 37 37 38 38 public function test_network_option_should_be_fallback_on_multisite() { 39 if ( ! is_multisite() ) { 40 $this->markTestSkipped( __METHOD__ . ' requires Multisite' ); 41 } 42 39 43 global $locale; 40 44 $old_locale = $locale; 41 45 $locale = null; 42 43 if ( ! is_multisite() ) {44 $this->markTestSkipped( __METHOD__ . ' requires Multisite' );45 }46 46 47 47 update_site_option( 'WPLANG', 'es_ES' ); … … 54 54 55 55 public function test_option_should_be_respected_on_nonmultisite() { 56 if ( is_multisite() ) { 57 $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite' ); 58 } 59 56 60 global $locale; 57 61 $old_locale = $locale; 58 62 $locale = null; 59 60 if ( is_multisite() ) {61 $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite' );62 }63 63 64 64 update_option( 'WPLANG', 'es_ES' );
Note: See TracChangeset
for help on using the changeset viewer.