Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions tests/phpunit/tests/query/taxQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,6 @@ public function test_tax_query_two_nested_queries() {
)
);

_unregister_taxonomy( 'foo' );
_unregister_taxonomy( 'bar' );

$this->assertSameSets( array( $p1, $p2 ), $q->posts );
}

Expand Down Expand Up @@ -904,9 +901,6 @@ public function test_tax_query_one_nested_query_one_first_order_query() {
)
);

_unregister_taxonomy( 'foo' );
_unregister_taxonomy( 'bar' );

$this->assertSameSets( array( $p1, $p2 ), $q->posts );
}

Expand Down Expand Up @@ -987,9 +981,6 @@ public function test_tax_query_one_double_nested_query_one_first_order_query() {
)
);

_unregister_taxonomy( 'foo' );
_unregister_taxonomy( 'bar' );

$this->assertSameSets( array( $p1, $p2, $p3 ), $q->posts );
}

Expand Down Expand Up @@ -1413,8 +1404,6 @@ public function test_populate_taxonomy_query_var_from_tax_query() {
);

$this->assertSame( 'foo', $q->get( 'taxonomy' ) );

_unregister_taxonomy( 'foo' );
}

public function test_populate_taxonomy_query_var_from_tax_query_taxonomy_already_set() {
Expand All @@ -1439,9 +1428,6 @@ public function test_populate_taxonomy_query_var_from_tax_query_taxonomy_already
);

$this->assertSame( 'bar', $q->get( 'taxonomy' ) );

_unregister_taxonomy( 'foo' );
_unregister_taxonomy( 'foo1' );
}

public function test_populate_term_query_var_from_tax_query() {
Expand All @@ -1466,8 +1452,6 @@ public function test_populate_term_query_var_from_tax_query() {
);

$this->assertSame( 'bar', $q->get( 'term' ) );

_unregister_taxonomy( 'foo' );
}

public function test_populate_term_id_query_var_from_tax_query() {
Expand All @@ -1492,8 +1476,6 @@ public function test_populate_term_id_query_var_from_tax_query() {
);

$this->assertSame( $t, $q->get( 'term_id' ) );

_unregister_taxonomy( 'foo' );
}

/**
Expand Down Expand Up @@ -1539,8 +1521,6 @@ public function test_populate_cat_category_name_query_var_from_tax_query() {

$this->assertSame( $c, $q->get( 'cat' ) );
$this->assertSame( 'bar', $q->get( 'category_name' ) );

_unregister_taxonomy( 'foo' );
}

/**
Expand Down Expand Up @@ -1585,8 +1565,6 @@ public function test_populate_tag_id_query_var_from_tax_query() {
);

$this->assertSame( $tag, $q->get( 'tag_id' ) );

_unregister_taxonomy( 'foo' );
}

/**
Expand Down
Loading