Skip to:
Content

BuddyPress.org

Changeset 8555


Ignore:
Timestamp:
06/30/2014 05:20:03 PM (10 years ago)
Author:
djpaul
Message:

Tests: stop manually resetting $bp->avatar between tests.

This causes tests to fail if those tests call friends_add_friend() inside setUp()
as the $bp->avatar->show_avatars property is unset. Instead, rather than manually
resetting the variable, we'll let bp_core_set_avatar_globals(), via bp_setup_globals
in assertPreConditions(), reset it correctly.

Fixes #5727

File:
1 edited

Legend:

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

    r8536 r8555  
    4343        buddypress()->displayed_user        = new stdClass();
    4444        buddypress()->loggedin_user         = new stdClass();
    45         buddypress()->avatar                = new stdClass();
    4645
    4746        parent::clean_up_global_scope();
Note: See TracChangeset for help on using the changeset viewer.