Skip to:
Content

BuddyPress.org

Changeset 9234


Ignore:
Timestamp:
12/17/2014 11:53:34 AM (12 years ago)
Author:
djpaul
Message:

Tests: after using our grant_super_admin helper, use restore_admins after the assertion to tidy up the $super_admins global.

This was otherwise breaking the seemingly unrelated tests added in r9233 when run in multisite. See #5944

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/members/functions.php

    r9233 r9234  
    3838                $this->assertEquals( 0, $maybe_user->ID );
    3939                unset( $maybe_user );
     40                $this->restore_admins();
    4041
    4142                // 2. Admin cannot delete superadmin account
Note: See TracChangeset for help on using the changeset viewer.