WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (8 months 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/functions/doEnclose.php

    r49006 r50463  
    2727        parent::setUp();
    2828        add_filter( 'pre_http_request', array( $this, 'fake_http_request' ), 10, 3 );
    29     }
    30 
    31     /**
    32      * Cleanup after each test method.
    33      *
    34      * @since 5.3.0
    35      */
    36     public function tearDown() {
    37         parent::tearDown();
    38         remove_filter( 'pre_http_request', array( $this, 'fake_http_request' ) );
    3929    }
    4030
Note: See TracChangeset for help on using the changeset viewer.