Changeset 34628
- Timestamp:
- 09/27/2015 04:31:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermBy.php
r34627 r34628 21 21 $this->assertFalse( $term ); 22 22 } 23 24 /** 25 * @ticket 16282 26 */ 27 public function test_get_term_by_slug_should_match_nonaccented_equivalents() { 28 register_taxonomy( 'wptests_tax', 'post' ); 29 30 $slug = 'ńaș'; 31 $t = $this->factory->term->create( array( 32 'slug' => $slug, 33 'taxonomy' => 'wptests_tax', 34 ) ); 35 36 $found = get_term_by( 'slug', 'nas', 'wptests_tax' ); 37 $this->assertSame( $t, $found->term_id ); 38 } 23 39 }
Note: See TracChangeset
for help on using the changeset viewer.