Ticket #26728: 26728.test.diff
File 26728.test.diff, 946 bytes (added by , 12 years ago) |
---|
-
tests/phpunit/tests/query/taxQuery.php
136 136 $this->assertEquals( $query->get_queried_object(), $this->uncat ); 137 137 } 138 138 139 /** 140 * @ticket 26728 141 */ 142 function test_tax_action_tax() { 143 // tax with tax added 144 $this->go_to( home_url( '/testtax/tax-slug2/' ) ); 145 $this->assertQueryTrue( 'is_tax', 'is_archive' ); 146 $this->assertNotEmpty( get_query_var( 'tax_query' ) ); 147 $this->assertNotEmpty( get_query_var( 'taxonomy' ) ); 148 $this->assertNotEmpty( get_query_var( 'term_id' ) ); 149 $this->assertEquals( get_queried_object(), get_term( $this->tax_id, 'testtax' ) ); 150 } 151 139 152 function test_tax_query_tag_action_tax() { 140 153 // tax + tag with tax added 141 154 $this->go_to( home_url( "/testtax/tax-slug2/?tag_id=$this->tag_id" ) );