mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Remove certain accents in the Danish language.
props tlamedia. fixes #23907. git-svn-id: https://develop.svn.wordpress.org/trunk@26585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -94,4 +94,20 @@ class Tests_Formatting_RemoveAccents extends WP_UnitTestCase {
|
||||
|
||||
remove_filter( 'locale', array( $this, '_remove_accents_germanic_umlauts_cb' ) );
|
||||
}
|
||||
|
||||
public function _set_locale_to_danish() {
|
||||
return 'da_DK';
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 23907
|
||||
*/
|
||||
public function test_remove_danish_accents() {
|
||||
add_filter( 'locale', array( $this, '_set_locale_to_danish' ) );
|
||||
|
||||
$this->assertEquals( 'AeOeAaaeoeaa', remove_accents( 'ÆØÅæøå' ) );
|
||||
|
||||
remove_filter( 'locale', array( $this, '_set_locale_to_danish' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user