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/query/isTerm.php

    r48937 r50463  
    6666    }
    6767
    68     function tearDown() {
    69         global $wp_rewrite;
    70 
    71         _unregister_taxonomy( 'testtax' );
    72 
    73         $wp_rewrite->init();
    74 
    75         remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_tax_category_tax_query' ) );
    76         parent::tearDown();
    77     }
    78 
    7968    function test_tag_action_tax() {
    8069        // Tag with taxonomy added.
Note: See TracChangeset for help on using the changeset viewer.