Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (6 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/rest-api/rest-posts-controller.php

    r50284 r50463  
    50895089
    50905090        public function tearDown() {
    5091                 _unregister_post_type( 'private-post' );
    5092                 _unregister_post_type( 'youseeme' );
    50935091                if ( isset( $this->attachment_id ) ) {
    50945092                        $this->remove_added_uploads();
    50955093                }
    5096                 remove_filter( 'rest_pre_dispatch', array( $this, 'wpSetUpBeforeRequest' ), 10, 3 );
    5097                 remove_filter( 'posts_clauses', array( $this, 'save_posts_clauses' ), 10, 2 );
     5094
    50985095                parent::tearDown();
    50995096        }
Note: See TracChangeset for help on using the changeset viewer.