summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes/testcase-rest-controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/testcase-rest-controller.php')
-rw-r--r--tests/phpunit/includes/testcase-rest-controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/testcase-rest-controller.php b/tests/phpunit/includes/testcase-rest-controller.php
index bc7d409368..2c79df11be 100644
--- a/tests/phpunit/includes/testcase-rest-controller.php
+++ b/tests/phpunit/includes/testcase-rest-controller.php
@@ -14,11 +14,11 @@ abstract class WP_Test_REST_Controller_Testcase extends WP_Test_REST_TestCase {
}
public function tearDown() {
- parent::tearDown();
remove_filter( 'rest_url', array( $this, 'test_rest_url_for_leading_slash' ), 10, 2 );
/** @var WP_REST_Server $wp_rest_server */
global $wp_rest_server;
$wp_rest_server = null;
+ parent::tearDown();
}
abstract public function test_register_routes();