Changeset 34809 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 10/03/2015 08:24:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r34720 r34809 629 629 } 630 630 631 /** 632 * @ticket 33864 633 */ 634 public function test_wp_insert_term_with_and_without_accents() { 635 register_taxonomy( 'wptests_tax', 'post' ); 636 637 $t1 = $this->factory->term->create( array( 638 'name' => 'Foó', 639 'taxonomy' => 'wptests_tax', 640 ) ); 641 $t2 = $this->factory->term->create( array( 642 'name' => 'Foo', 643 'taxonomy' => 'wptests_tax', 644 ) ); 645 646 $this->assertInternalType( 'int', $t1 ); 647 $this->assertInternalType( 'int', $t2 ); 648 $this->assertNotEquals( $t1, $t2 ); 649 650 $term_2 = get_term( $t2, 'wptests_tax' ); 651 $this->assertSame( $t2, $term_2->term_id ); 652 $this->assertSame( 'Foo', $term_2->name ); 653 654 } 655 631 656 /** Helpers **********************************************************/ 632 657
Note: See TracChangeset
for help on using the changeset viewer.