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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-30 00:58:07 +00:00
parent 43977e7689
commit 5d0b2a7510
1 changed files with 0 additions and 5 deletions

View File

@ -32,11 +32,6 @@ class Tests_Ajax_EditComment extends WP_Ajax_UnitTestCase {
$this->_comment_post = get_post( $post_id );
}
public function tearDown() {
remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 );
parent::tearDown();
}
/**
* Gets comments as a privileged user (administrator).
*