Set current user to 0 after each unit test.
Merges [30001] to the 4.0 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.0@41085 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4b5d60b300
commit
cfe3166416
@ -58,6 +58,7 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
|
||||
remove_filter( 'query', array( $this, '_drop_temporary_tables' ) );
|
||||
remove_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) );
|
||||
$this->_restore_hooks();
|
||||
wp_set_current_user( 0 );
|
||||
}
|
||||
|
||||
function clean_up_global_scope() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user