Changeset 54669 for trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php
- Timestamp:
- 10/24/2022 10:01:01 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php
r54088 r54669 28 28 global $wp_textdomain_registry; 29 29 30 $wp_textdomain_registry ->reset();30 $wp_textdomain_registry = new WP_Textdomain_Registry(); 31 31 } 32 32 … … 37 37 global $wp_textdomain_registry; 38 38 39 $wp_textdomain_registry ->reset();39 $wp_textdomain_registry = new WP_Textdomain_Registry(); 40 40 41 41 parent::tear_down(); … … 479 479 require_once DIR_TESTDATA . '/plugins/custom-internationalized-plugin/custom-internationalized-plugin.php'; 480 480 481 $actual = custom_i18n_plugin_test(); 482 483 switch_to_locale( 'es_ES' ); 484 481 485 $registry_value = $wp_textdomain_registry->get( 'custom-internationalized-plugin', determine_locale() ); 482 486 483 $actual = custom_i18n_plugin_test();484 485 switch_to_locale( 'es_ES' );486 487 switch_to_locale( 'de_DE' ); 487 488 … … 518 519 require_once get_stylesheet_directory() . '/functions.php'; 519 520 521 $actual = custom_i18n_theme_test(); 522 523 switch_to_locale( 'es_ES' ); 524 520 525 $registry_value = $wp_textdomain_registry->get( 'custom-internationalized-theme', determine_locale() ); 521 526 522 $actual = custom_i18n_theme_test();523 524 switch_to_locale( 'es_ES' );525 527 switch_to_locale( 'de_DE' ); 526 528
Note: See TracChangeset
for help on using the changeset viewer.