Skip to:
Content

BuddyPress.org

Changeset 9282


Ignore:
Timestamp:
12/25/2014 01:22:03 PM (6 years ago)
Author:
imath
Message:

Unit Tests: fix tests suite for non multisite mode

Fixes #6080

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r9281 r9282  
    6565        global $wpdb;
    6666
    67         $blogs = wp_get_sites();
    68         foreach ( $blogs as $blog ) {
    69             if ( (int) $blog['blog_id'] !== 1 ) {
    70                 wpmu_delete_blog( $blog['blog_id'], true );
     67        if ( is_multisite() ) {
     68            $blogs = wp_get_sites();
     69            foreach ( $blogs as $blog ) {
     70                if ( (int) $blog['blog_id'] !== 1 ) {
     71                    wpmu_delete_blog( $blog['blog_id'], true );
     72                }
    7173            }
    7274        }
Note: See TracChangeset for help on using the changeset viewer.