Skip to content

Commit 0f60ced

Browse files
committed
Tests: Remove redundant taxonomy cleanup.
The test harness resets the private block-binding and category test taxonomies before the next test. Developed in: #15502, #15503 Props devmuhib, peterwilsoncc. See #66755. git-svn-id: https://develop.svn.wordpress.org/trunk@65761 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 084145c commit 0f60ced

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎tests/phpunit/tests/block-bindings/termDataSource.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@ public function test_get_value_non_publicly_queryable_taxonomy_unauthenticated()
449449
wp_set_current_user( 0 );
450450

451451
$this->assertNull( _block_bindings_term_data_get_value( array( 'field' => 'name' ), $block ) );
452-
453-
_unregister_taxonomy( 'wptests_private_tax' );
454452
}
455453

456454
/**
@@ -482,8 +480,6 @@ public function test_get_value_non_publicly_queryable_taxonomy_with_read_capabil
482480
wp_set_current_user( $subscriber_id );
483481

484482
$this->assertSame( 'Secret Term', _block_bindings_term_data_get_value( array( 'field' => 'name' ), $block ) );
485-
486-
_unregister_taxonomy( 'wptests_private_tax' );
487483
}
488484

489485
/**

‎tests/phpunit/tests/category/getAllCategoryIds.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ public function test_get_all_category_ids() {
2222
wp_insert_term( 'test1', 'test_tax_cat' );
2323
$cat_ids = get_all_category_ids();
2424

25-
_unregister_taxonomy( 'test_tax_cat' );
26-
2725
// Validate length is 1 + created due to uncategorized.
2826
$this->assertCount( 3, $cat_ids );
2927
}

0 commit comments

Comments
 (0)