Changeset 36718
- Timestamp:
- 02/26/2016 12:38:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n.php
r36710 r36718 46 46 __( 'just some string', 'wp-tests-domain' ); 47 47 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 48 } 49 50 /** 51 * @ticket 35950 52 */ 53 function test_get_available_languages() { 54 $array = get_available_languages(); 55 $this->assertInternalType( 'array', $array ); 56 57 $array = get_available_languages( '.' ); 58 $this->assertEmpty( $array ); 59 60 $array = get_available_languages( DIR_TESTDATA . '/languages/' ); 61 $this->assertEquals( array( 'en_GB', 'es_ES' ), $array ); 48 62 } 49 63
Note: See TracChangeset
for help on using the changeset viewer.