From dd85c357d8291bd0160fcaaab795426ea8b0c679 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 14 Jan 2019 21:33:56 +0000 Subject: [PATCH] Tests: Add missing `parent::tearDown()`. Also, remove a `tearDown()` method that was not serving any purpose. Fixes #45931. git-svn-id: https://develop.svn.wordpress.org/trunk@44584 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/formatting/redirect.php | 1 + tests/phpunit/tests/rest-api/rest-users-controller.php | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/phpunit/tests/formatting/redirect.php b/tests/phpunit/tests/formatting/redirect.php index a29e8bb050..ac16172c69 100644 --- a/tests/phpunit/tests/formatting/redirect.php +++ b/tests/phpunit/tests/formatting/redirect.php @@ -13,6 +13,7 @@ class Tests_Formatting_Redirect extends WP_UnitTestCase { function tearDown() { remove_filter( 'home_url', array( $this, 'home_url' ) ); + parent::tearDown(); } function home_url() { diff --git a/tests/phpunit/tests/rest-api/rest-users-controller.php b/tests/phpunit/tests/rest-api/rest-users-controller.php index 76c7678c77..2addffd07d 100644 --- a/tests/phpunit/tests/rest-api/rest-users-controller.php +++ b/tests/phpunit/tests/rest-api/rest-users-controller.php @@ -2736,10 +2736,6 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase { update_user_meta( $user->ID, 'my_custom_int', $value ); } - public function tearDown() { - parent::tearDown(); - } - protected function check_user_data( $user, $data, $context, $links ) { $this->assertEquals( $user->ID, $data['id'] ); $this->assertEquals( $user->display_name, $data['name'] );