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/http/wpGetHttpHeaders.php

    r50345 r50463  
    1515        // Hook a fake HTTP request response.
    1616        add_filter( 'pre_http_request', array( $this, 'fake_http_request' ), 10, 3 );
    17     }
    18 
    19     /**
    20      * Clean up environment
    21      */
    22     public function tearDown() {
    23         parent::tearDown();
    24 
    25         // Clear the hook for the fake HTTP request response.
    26         remove_filter( 'pre_http_request', array( $this, 'fake_http_request' ) );
    2717    }
    2818
Note: See TracChangeset for help on using the changeset viewer.