Changeset 25407
- Timestamp:
- 09/12/2013 05:47:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n.php
r25405 r25407 11 11 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) ); 12 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 } 13 $file = DIR_TESTDATA . '/pomo/simple.mo'; 14 $this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) ); 15 $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) ); 16 $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) ); 23 17 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 24 18 }
Note: See TracChangeset
for help on using the changeset viewer.