From fc7efaf9b18d79a54479807b357a79d5d8384ab2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 15 Oct 2015 01:17:22 +0000 Subject: [PATCH] Unit Tests: `Tests_Canonical` doesn't need to call `wp_set_current_user()` or implement `tearDown` because its grandparent calls `wp_set_current_user( 0 )` in `tearDown()`. See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35177 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/canonical.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/phpunit/tests/canonical.php b/tests/phpunit/tests/canonical.php index d0e635e033..1a624a374d 100644 --- a/tests/phpunit/tests/canonical.php +++ b/tests/phpunit/tests/canonical.php @@ -22,11 +22,6 @@ class Tests_Canonical extends WP_Canonical_UnitTestCase { wp_set_current_user( self::$author_id ); } - public function tearDown() { - wp_set_current_user( self::$old_current_user ); - parent::tearDown(); - } - /** * @dataProvider data */