Make WordPress Core


Ignore:
Timestamp:
12/28/2013 05:24:32 AM (13 years ago)
Author:
SergeyBiryukov
Message:

Add unit test for [26874]. see #26728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/taxQuery.php

    r26873 r26875  
    137137        }
    138138
     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
    139152        function test_tax_query_tag_action_tax() {
    140153                // tax + tag with tax added
Note: See TracChangeset for help on using the changeset viewer.