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:
parent
a270d619ad
commit
fc7efaf9b1
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user