Skip to content
Open
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
11 changes: 9 additions & 2 deletions tests/phpunit/tests/category/getAllCategoryIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
*/
class Tests_Category_GetAllCategoryIds extends WP_UnitTestCase {

/**
* Tear down after each test.
*/
public function tear_down() {
unregister_taxonomy( 'test_tax_cat' );

parent::tear_down();
}

/**
* Validate get_all_category_ids
*
Expand All @@ -22,8 +31,6 @@ public function test_get_all_category_ids() {
wp_insert_term( 'test1', 'test_tax_cat' );
$cat_ids = get_all_category_ids();

_unregister_taxonomy( 'test_tax_cat' );

// Validate length is 1 + created due to uncategorized.
$this->assertCount( 3, $cat_ids );
}
Expand Down
Loading