Changeset 29863 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 10/09/2014 02:48:47 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r29862 r29863 137 137 $this->assertInternalType( 'array', $found ); 138 138 $this->assertEquals( $t, $found['term_id'] ); 139 } 140 141 /** 142 * @ticket 29851 143 */ 144 public function test_term_exists_taxonomy_nonempty_parent_0_should_return_false_for_child_term() { 145 register_taxonomy( 'foo', 'post', array( 146 'hierarchical' => true, 147 ) ); 148 149 $parent_term = $this->factory->term->create( array( 150 'taxonomy' => 'foo', 151 ) ); 152 153 $t = $this->factory->term->create( array( 154 'taxonomy' => 'foo', 155 'parent' => $parent_term, 156 'slug' => 'child-term', 157 ) ); 158 159 $found = term_exists( 'child-term', 'foo', 0 ); 160 161 _unregister_taxonomy( 'foo' ); 162 163 $this->assertSame( null, $found['term_id'] ); 139 164 } 140 165
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)