- Timestamp:
- 11/12/2020 02:41:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php
r49236 r49566 33 33 add_filter( 'template_root', array( $this, 'filter_theme_root' ) ); 34 34 wp_clean_themes_cache(); 35 unset( $GLOBALS['wp_themes'], $GLOBALS['l10n'], $GLOBALS['l10n_unloaded'] ); 36 37 /** @var WP_Textdomain_Registry $wp_textdomain_registry */ 38 global $wp_textdomain_registry; 39 40 $wp_textdomain_registry->reset(); 35 unset( $GLOBALS['wp_themes'] ); 36 unset( $GLOBALS['l10n'] ); 37 unset( $GLOBALS['l10n_unloaded'] ); 38 _get_path_to_translation( null, true ); 41 39 } 42 40 … … 47 45 remove_filter( 'template_root', array( $this, 'filter_theme_root' ) ); 48 46 wp_clean_themes_cache(); 49 unset( $GLOBALS['wp_themes'], $GLOBALS['l10n'], $GLOBALS['l10n_unloaded'] ); 50 51 /** @var WP_Textdomain_Registry $wp_textdomain_registry */ 52 global $wp_textdomain_registry; 53 54 $wp_textdomain_registry->reset(); 47 unset( $GLOBALS['wp_themes'] ); 48 unset( $GLOBALS['l10n'] ); 49 unset( $GLOBALS['l10n_unloaded'] ); 50 _get_path_to_translation( null, true ); 55 51 56 52 parent::tearDown(); … … 175 171 /** 176 172 * @ticket 37997 177 * @ticket 39210178 173 */ 179 174 public function test_plugin_translation_after_switching_locale_twice() { … … 189 184 190 185 $this->assertSame( 'Das ist ein Dummy Plugin', $expected_de_de ); 191 $this->assertSame( ' Este es un plugin dummy', $expected_es_es );186 $this->assertSame( 'This is a dummy plugin', $expected_es_es ); 192 187 } 193 188
Note: See TracChangeset
for help on using the changeset viewer.