e102a22f80
The removed test has been added as a patch to the original ticket, #21319. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30521 602fd350-edb4-49c9-b593-d223f7449a82
20 lines
576 B
PHP
20 lines
576 B
PHP
<?php
|
|
|
|
/**
|
|
* @group l10n
|
|
* @group i18n
|
|
*/
|
|
class Tests_L10n extends WP_UnitTestCase {
|
|
|
|
function test_load_unload_textdomain() {
|
|
$this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
|
|
$this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
|
|
|
|
$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' ) );
|
|
$this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
|
|
}
|
|
}
|