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/image/base.php

    r49009 r50463  
    1717
    1818        add_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 );
    19     }
    20 
    21     /**
    22      * Undo the image editor override
    23      */
    24     public function tearDown() {
    25         remove_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 );
    26         parent::tearDown();
    2719    }
    2820
Note: See TracChangeset for help on using the changeset viewer.