Revert [25405] and use a file that does exist. see #25282.
git-svn-id: https://develop.svn.wordpress.org/trunk@25407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e89c725696
commit
9bfe9b7230
|
@ -10,16 +10,10 @@ class Tests_L10n extends WP_UnitTestCase {
|
|||
$this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
|
||||
$this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
|
||||
|
||||
$file = DIR_TESTDATA . '/wpcom-themes/p2/languages/es_ES.mo';
|
||||
if ( file_exists( $file ) ) {
|
||||
$file = DIR_TESTDATA . '/pomo/simple.mo';
|
||||
$this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) );
|
||||
$this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) );
|
||||
$this->assertTrue( unload_textdomain( 'wp-tests-domain' ) );
|
||||
} else {
|
||||
$this->assertFalse( load_textdomain( 'wp-tests-domain', $file ) );
|
||||
$this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
|
||||
$this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
|
||||
}
|
||||
$this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue