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/formatting/redirect.php

    r50337 r50463  
    1010        parent::setUp();
    1111        add_filter( 'home_url', array( $this, 'home_url' ) );
    12     }
    13 
    14     function tearDown() {
    15         remove_filter( 'home_url', array( $this, 'home_url' ) );
    16         parent::tearDown();
    1712    }
    1813
Note: See TracChangeset for help on using the changeset viewer.