mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.
See #52625 git-svn-id: https://develop.svn.wordpress.org/trunk@50463 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -58,11 +58,6 @@ class Tests_User_CountUserPosts extends WP_UnitTestCase {
|
||||
register_post_type( 'wptests_pt' );
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
_unregister_post_type( 'wptests_pt' );
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function test_count_user_posts_post_type_should_default_to_post() {
|
||||
$this->assertEquals( 4, count_user_posts( self::$user_id ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user