Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2014 05:27:43 PM (13 years ago)
Author:
boonebgorges
Message:

Don't manually wipe BP settings between unit test runs

This looks like it was originally intended to do cleanup on multisite installs,
but it's causing issues when running the tests multiple times in the same
environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/includes/install.php

    r7693 r7849  
    3939echo "Installing BuddyPress...\n";
    4040
    41 // Make sure that BP has been cleaned from all blogs before reinstalling
    42 $blogs = is_multisite() ? $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ) : array( 1 );
    43 foreach ( $blogs as $blog ) {
    44         if ( is_multisite() ) {
    45                 switch_to_blog( $blog );
    46         }
    47 
    48         $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '%bp%'" );
    49 
    50         if ( is_multisite() ) {
    51                 restore_current_blog();
    52         }
    53 }
    54 
    5541$wpdb->query( 'SET storage_engine = INNODB' );
    5642$wpdb->select( DB_NAME, $wpdb->dbh );
Note: See TracChangeset for help on using the changeset viewer.