From 5d0b2a75102ee4610cc14095e9a4928a4320ce57 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Jun 2020 00:58:07 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/ajax/EditComment.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/phpunit/tests/ajax/EditComment.php b/tests/phpunit/tests/ajax/EditComment.php index ac73bef18e..7b50da4b68 100644 --- a/tests/phpunit/tests/ajax/EditComment.php +++ b/tests/phpunit/tests/ajax/EditComment.php @@ -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). *