WordPress.org

Make WordPress Core

Changeset 48222


Ignore:
Timestamp:
06/30/2020 12:58:07 AM (6 days ago)
Author:
SergeyBiryukov
Message:

Tests: Remove unnecessary tearDown() method in Tests_Ajax_EditComment.

Restoring the hook-related globals to their state at setUp() is addressed by WP_UnitTestCase_Base::_restore_hooks().

Follow-up to [48154].

See #39732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/EditComment.php

    r48220 r48222  
    3333    }
    3434
    35     public function tearDown() {
    36         remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 );
    37         parent::tearDown();
    38     }
    39 
    4035    /**
    4136     * Gets comments as a privileged user (administrator).
Note: See TracChangeset for help on using the changeset viewer.