Changeset 47122 for trunk/tests/phpunit/tests/query/isTerm.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/isTerm.php
r46586 r47122 78 78 79 79 function test_tag_action_tax() { 80 // tag with tax added80 // Tag with taxonomy added. 81 81 $this->go_to( home_url( '/tag/tag-slug/' ) ); 82 82 $this->assertQueryTrue( 'is_tag', 'is_archive' ); … … 89 89 90 90 function test_tag_query_cat_action_tax() { 91 // tag + category with tax added91 // Tag + category with taxonomy added. 92 92 $this->go_to( home_url( "/tag/tag-slug/?cat=$this->cat_id" ) ); 93 93 $this->assertQueryTrue( 'is_category', 'is_tag', 'is_archive' ); … … 101 101 102 102 function test_tag_query_cat_query_tax_action_tax() { 103 // tag + category + tax with tax added103 // Tag + category + tax with taxonomy added. 104 104 $this->go_to( home_url( "/tag/tag-slug/?cat=$this->cat_id&testtax=tax-slug2" ) ); 105 105 $this->assertQueryTrue( 'is_category', 'is_tag', 'is_tax', 'is_archive' ); … … 114 114 115 115 function test_cat_action_tax() { 116 // category with tax added116 // Category with taxonomy added. 117 117 $this->go_to( home_url( '/category/cat-slug/' ) ); 118 118 $this->assertQueryTrue( 'is_category', 'is_archive' ); … … 128 128 */ 129 129 function test_cat_uncat_action_tax() { 130 // category with tax added130 // Category with taxonomy added. 131 131 add_action( 'pre_get_posts', array( $this, '_cat_uncat_action_tax' ), 11 ); 132 132 … … 154 154 */ 155 155 function test_tax_action_tax() { 156 // tax with tax added156 // Taxonomy with taxonomy added. 157 157 $this->go_to( home_url( '/testtax/tax-slug2/' ) ); 158 158 $this->assertQueryTrue( 'is_tax', 'is_archive' ); … … 164 164 165 165 function test_tax_query_tag_action_tax() { 166 // tax + tag with tax added166 // Taxonomy + tag with taxonomy added. 167 167 $this->go_to( home_url( "/testtax/tax-slug2/?tag_id=$this->tag_id" ) ); 168 168 $this->assertQueryTrue( 'is_tag', 'is_tax', 'is_archive' ); … … 175 175 176 176 function test_tax_query_cat_action_tax() { 177 // tax + cat with tax added177 // Taxonomy + category with taxonomy added. 178 178 $this->go_to( home_url( "/testtax/tax-slug2/?cat=$this->cat_id" ) ); 179 179 $this->assertQueryTrue( 'is_category', 'is_tax', 'is_archive' );
Note: See TracChangeset
for help on using the changeset viewer.