Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/09/2013 01:19:40 PM (12 years ago)
Author:
boonebgorges
Message:

In test_filter_user_groups_normal_search(), declare a user_id to filter by

Recent changes in the test suite have ensured that the user is not necessarily
logged in at this point, so we can't rely on the current user fallback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/groups/class-bp-groups-group.php

    r7015 r7038  
    153153        ) );
    154154        $g2 = $this->factory->group->create();
    155 
    156         $groups = BP_Groups_Group::filter_user_groups( 'Cool' );
     155        $u = $this->factory->user->create();
     156        self::add_user_to_group( $u, $g1->id );
     157
     158        $groups = BP_Groups_Group::filter_user_groups( 'Cool', $u );
    157159
    158160        $found = wp_list_pluck( $groups['groups'], 'group_id' );
Note: See TracChangeset for help on using the changeset viewer.