Tests: Fix all the things.

See #30017, #32394


git-svn-id: https://develop.svn.wordpress.org/trunk@36049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-12-21 07:09:43 +00:00
parent 8b5747a108
commit b637e77c5a

View File

@ -20,6 +20,12 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
);
}
public static function wpTearDownAfterClass() {
foreach ( self::$users as $role => $user ) {
self::delete_user( $user->ID );
}
}
function setUp() {
parent::setUp();
// keep track of users we create