Skip to:
Content

BuddyPress.org

Changeset 9913


Ignore:
Timestamp:
06/04/2015 12:51:21 PM (9 years ago)
Author:
boonebgorges
Message:

Empty buddypress()->pages before each unit test.

This ensures that globals can be modified safely within the confines of a
specific test method.

See #6475.

File:
1 edited

Legend:

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

    r9831 r9913  
    5151        buddypress()->displayed_user        = new stdClass();
    5252        buddypress()->loggedin_user         = new stdClass();
     53        buddypress()->pages                 = array();
    5354
    5455        parent::clean_up_global_scope();
Note: See TracChangeset for help on using the changeset viewer.