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:
John Blackbourn 2017-07-18 21:45:46 +00:00
parent 4b5d60b300
commit cfe3166416

View File

@ -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() {