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/rest-api/rest-attachments-controller.php

    r50450 r50463  
    9595            unlink( $this->test_file2 );
    9696        }
    97 
    98         remove_action( 'rest_insert_attachment', array( $this, 'filter_rest_insert_attachment' ) );
    99         remove_action( 'rest_after_insert_attachment', array( $this, 'filter_rest_after_insert_attachment' ) );
    10097
    10198        $this->remove_added_uploads();
Note: See TracChangeset for help on using the changeset viewer.