diff --git a/tests/phpunit/tests/canonical.php b/tests/phpunit/tests/canonical.php index 06379361887c2..ebe5a8f1b4f77 100644 --- a/tests/phpunit/tests/canonical.php +++ b/tests/phpunit/tests/canonical.php @@ -47,6 +47,7 @@ public function set_up() { */ public function tear_down() { unregister_post_type( 'wp_tests_private' ); + _unregister_post_status( 'custom' ); parent::tear_down(); }