WordPress.org

Make WordPress Core

Changeset 1178 in tests


Ignore:
Timestamp:
12/30/2012 02:06:19 AM (9 years ago)
Author:
SergeyBiryukov
Message:

remove_accents() test for German umlauts. see #3782.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/formatting/RemoveAccents.php

    r915 r1178  
    8080        $this->assertEquals( 'aaeiouuAEIOUU', remove_accents( 'aɑeiouüAEIOUÜ' ) );
    8181    }
     82
     83    function _remove_accents_germanic_umlauts_cb() {
     84        return 'de_DE';
     85    }
     86
     87    /**
     88     * @ticket 3782
     89     */
     90    public function test_remove_accents_germanic_umlauts() {
     91        add_filter( 'locale', array( $this, '_remove_accents_germanic_umlauts_cb' ) );
     92
     93        $this->assertEquals( 'aeoeuess', remove_accents( 'äöüß' ) );
     94
     95        remove_filter( 'locale', array( $this, '_remove_accents_germanic_umlauts_cb' ) );
     96    }
    8297}
Note: See TracChangeset for help on using the changeset viewer.