Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2014 04:26:35 AM (10 years ago)
Author:
djpaul
Message:

Tests: make sure globals are reset when the go_to helper method is used to simulate a GET request.

This fixes a problem where go_to is used multiple times in one test, and the globals end up with incorrect/unexpected values for the second call; a situation which is likely to occur very infrequently.

Fixes #5965

File:
1 edited

Legend:

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

    r9053 r9093  
    254254
    255255        // For BuddyPress, James.
     256        $this->clean_up_global_scope();
    256257        $GLOBALS['bp']->loggedin_user = NULL;
    257258        $GLOBALS['bp']->pages = bp_core_get_directory_pages();
Note: See TracChangeset for help on using the changeset viewer.