Changeset 36348 for trunk/tests/phpunit/tests/term/getTerms.php
- Timestamp:
- 01/19/2016 04:09:32 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/getTerms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTerms.php
r36252 r36348 560 560 'name' => array( 'Foo & Bar' ), 561 561 ) ); 562 $this->assertEqualSets( array( $t ), $found ); 563 } 564 565 /** 566 * @ticket 35493 567 */ 568 public function test_name_should_not_double_escape_apostrophes() { 569 register_taxonomy( 'wptests_tax', 'post' ); 570 571 $name = "Foo'Bar"; 572 573 $t = self::factory()->term->create( array( 574 'taxonomy' => 'wptests_tax', 575 'name' => $name, 576 ) ); 577 578 $term = get_term( $t, 'wptests_tax' ); 579 580 $this->assertSame( $name, $term->name ); 581 582 $found = get_terms( 'wptests_tax', array( 583 'hide_empty' => false, 584 'fields' => 'ids', 585 'name' => $name, 586 ) ); 587 562 588 $this->assertEqualSets( array( $t ), $found ); 563 589 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)