Changeset 7043
- Timestamp:
- 05/09/2013 01:20:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r7041 r7043 13 13 public function setUp() { 14 14 parent::setUp(); 15 16 // Make sure all users are deleted 17 // There's a bug in the multisite tests that causes the 18 // transaction rollback to fail for the first user created, 19 // which busts every other attempt to create users. This is a 20 // hack workaround 21 global $wpdb; 22 $wpdb->query( "TRUNCATE TABLE {$wpdb->users}" ); 23 15 24 $this->factory = new BP_UnitTest_Factory; 16 25 } … … 89 98 90 99 // For BuddyPress, James. 100 $GLOBALS['bp']->loggedin_user = NULL; 91 101 do_action( 'bp_init' ); 92 102 }
Note: See TracChangeset
for help on using the changeset viewer.