Skip to:
Content

BuddyPress.org

Changeset 9275


Ignore:
Timestamp:
12/24/2014 04:30:10 PM (6 years ago)
Author:
djpaul
Message:

Tests: in test_avatars_on_non_root_blog, don't use go_to to change the WP site globals.

In my local testing, I've removed the code entirely. If we find it fails in edge cases later,
we should reinstate this using switch_to_blog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/avatars.php

    r9139 r9275  
    5959        }
    6060
    61         // switch to BP root blog if necessary
    62         if ( bp_get_root_blog_id() != get_current_blog_id() ) {
    63             $this->go_to( '/' );
    64         }
    65 
    6661        // get BP root blog's upload directory data
    6762        $upload_dir = wp_upload_dir();
    68 
    69         restore_current_blog();
    7063
    7164        // create new subsite
Note: See TracChangeset for help on using the changeset viewer.