Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/countUserPosts.php

    r49603 r50463  
    5959    }
    6060
    61     public function tearDown() {
    62         _unregister_post_type( 'wptests_pt' );
    63         parent::tearDown();
    64     }
    65 
    6661    public function test_count_user_posts_post_type_should_default_to_post() {
    6762        $this->assertEquals( 4, count_user_posts( self::$user_id ) );
Note: See TracChangeset for help on using the changeset viewer.