Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/27/2015 07:10:10 PM (5 years ago)
Author:
dcavins
Message:

Use groups_remove_member in groups_leave_group.

Also change groups_remove_member() to allow it
to work in situations where bp_is_item_admin
may not be true.

See #6209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/functions.php

    r9654 r9811  
    3838        groups_join_group( $g2, $u2 );
    3939
     40        // Set the current user so the leave group request goes through.
     41        $this->set_current_user( $u2 );
    4042        groups_leave_group( $g1, $u2 );
    4143        $this->assertEquals( 1, bp_get_user_meta( $u2, 'total_group_count', true ) );
Note: See TracChangeset for help on using the changeset viewer.