Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2019 08:43:58 PM (5 years ago)
Author:
dcavins
Message:

Update invitation/request functions calls.

Update calls to group invitation and management functions in tests and functional code to take advantage of new functionality (especially by replacing workaround code in tests) and to avoid deprecation notices caused by calling invitations functions with out-of-date parameters.

See #6210.

File:
1 edited

Legend:

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

    r11737 r12433  
    9999        $this->set_current_user( $u );
    100100
    101         groups_send_membership_request( $u, $g );
     101        groups_send_membership_request( array(
     102            'user_id'  => $u,
     103            'group_id' => $g
     104        ) );
    102105
    103106        if ( bp_has_groups( array( 'include' => array( $g ) ) ) ) {
     
    142145        $GLOBALS['groups_template']->group = groups_get_group( $groups[0] );
    143146
    144         groups_send_membership_request( $u, $groups[1] );
     147        groups_send_membership_request( array(
     148            'user_id' => $u,
     149            'group_id' => $groups[1]
     150        ) );
    145151
    146152        $group1 = groups_get_group( array(
Note: See TracChangeset for help on using the changeset viewer.