mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Remove non-built-in post statuses during each unit test teardown.
See #29167. git-svn-id: https://develop.svn.wordpress.org/trunk@31046 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -159,4 +159,13 @@ class Tests_TestHelpers extends WP_UnitTestCase {
|
||||
$this->assertEqualSetsWithIndex( $expected, $actual );
|
||||
}
|
||||
}
|
||||
|
||||
public function test__unregister_post_status() {
|
||||
register_post_status( 'foo' );
|
||||
_unregister_post_status( 'foo' );
|
||||
|
||||
$stati = get_post_stati();
|
||||
|
||||
$this->assertFalse( isset( $stati['foo'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user