Skip to:
Content

BuddyPress.org

Changeset 7191


Ignore:
Timestamp:
06/07/2013 11:33:57 AM (11 years ago)
Author:
boonebgorges
Message:

In test_avatars_on_non_root_blog(), use go_to_root() to establish root blog

This ensures that all globals have been reset by the time avatar directories
are queried, preventing test failures when run in certain configs

File:
1 edited

Legend:

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

    r7190 r7191  
    3131        // switch to BP root blog if necessary
    3232        if ( bp_get_root_blog_id() != get_current_blog_id() ) {
    33             switch_to_blog( get_current_blog_id() );
     33            $this->go_to_root();
    3434        }
    3535
     
    4949
    5050        // test to see if the upload dir is correct
    51         $this->assertEquals( bp_core_avatar_url(), $upload_dir['baseurl'] );
     51        $this->assertEquals( $upload_dir['baseurl'], bp_core_avatar_url() );
    5252
    5353        // reset globals
Note: See TracChangeset for help on using the changeset viewer.