Changeset 42343 for trunk/tests/phpunit/tests/l10n/loadTextdomain.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/loadTextdomain.php
r39127 r42343 10 10 11 11 public static function wpSetUpBeforeClass( $factory ) { 12 self::$user_id = $factory->user->create( array( 13 'role' => 'administrator', 14 'locale' => 'de_DE', 15 ) ); 12 self::$user_id = $factory->user->create( 13 array( 14 'role' => 'administrator', 15 'locale' => 'de_DE', 16 ) 17 ); 16 18 } 17 19 … … 38 40 } 39 41 40 public function test_is_textdomain_loaded( 41 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 42 } 43 44 public function test_unload_textdomain( 42 public function test_is_textdomain_loaded() { 43 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 44 } 45 46 public function test_unload_textdomain() { 45 47 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) ); 46 48 } … … 54 56 } 55 57 56 public function test_is_textdomain_loaded_after_loading( 58 public function test_is_textdomain_loaded_after_loading() { 57 59 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); 58 60 … … 64 66 } 65 67 66 public function test_unload_textdomain_after_loading( 68 public function test_unload_textdomain_after_loading() { 67 69 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); 68 70 … … 70 72 } 71 73 72 public function test_is_textdomain_loaded_after_unloading( 74 public function test_is_textdomain_loaded_after_unloading() { 73 75 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); 74 76 … … 88 90 * @ticket 21319 89 91 */ 90 public function test_is_textdomain_loaded_non_existent_file( 92 public function test_is_textdomain_loaded_non_existent_file() { 91 93 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' ); 92 94 … … 97 99 * @ticket 21319 98 100 */ 99 public function test_get_translations_for_domain_non_existent_file( 101 public function test_get_translations_for_domain_non_existent_file() { 100 102 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' ); 101 103
Note: See TracChangeset
for help on using the changeset viewer.