Changeset 47338 for branches/3.8/tests/phpunit/tests/l10n.php
- Timestamp:
- 02/21/2020 01:05:39 PM (5 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/l10n.php
r25407 r47338 17 17 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 18 18 } 19 20 /**21 * @ticket 2131922 */23 function test_is_textdomain_loaded_for_no_translations() {24 $this->assertFalse( load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' ) );25 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );26 $this->assertInstanceOf( 'NOOP_Translations', get_translations_for_domain( 'wp-tests-domain' ) );27 // Ensure that we don't confuse NOOP_Translations to be a loaded text domain.28 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );29 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );30 }31 19 }
Note: See TracChangeset
for help on using the changeset viewer.