diff --git a/tests/phpunit/tests/query/taxQuery.php b/tests/phpunit/tests/query/taxQuery.php index f517e4bb84134..7752e0befd270 100644 --- a/tests/phpunit/tests/query/taxQuery.php +++ b/tests/phpunit/tests/query/taxQuery.php @@ -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 ); } @@ -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 ); } @@ -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 ); } @@ -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() { @@ -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() { @@ -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() { @@ -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' ); } /** @@ -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' ); } /** @@ -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' ); } /**