Changeset 25405
- Timestamp:
- 09/12/2013 05:36:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n.php
r25002 r25405 10 10 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 11 11 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) ); 12 $this->assertTrue( load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/wpcom-themes/p2/languages/es_ES.mo' ) ); 13 $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) ); 14 $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) ); 12 13 $file = DIR_TESTDATA . '/wpcom-themes/p2/languages/es_ES.mo'; 14 if ( file_exists( $file ) ) { 15 $this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) ); 16 $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) ); 17 $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) ); 18 } else { 19 $this->assertFalse( load_textdomain( 'wp-tests-domain', $file ) ); 20 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 21 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) ); 22 } 15 23 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 16 24 }
Note: See TracChangeset
for help on using the changeset viewer.