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
This commit is contained in:
Scott Taylor 2015-10-15 01:17:22 +00:00
parent a270d619ad
commit fc7efaf9b1

View File

@ -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
*/