Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (3 years ago)
Author:
boonebgorges
Message:

Use new groups_get_group() syntax throughout BP.

See #5451.

File:
1 edited

Legend:

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

    r9819 r11091  
    2121
    2222        $a_obj = new BP_Activity_Activity( $a );
    23         $g_obj = groups_get_group( array( 'group_id' => $g, ) );
     23        $g_obj = groups_get_group( $g );
    2424
    2525        $expected = sprintf( __( '%s created the group %s', 'buddypress' ), bp_core_get_userlink( $u ),  '<a href="' . bp_get_group_permalink( $g_obj ) . '">' . $g_obj->name . '</a>' );
     
    4343
    4444        $a_obj = new BP_Activity_Activity( $a );
    45         $g_obj = groups_get_group( array( 'group_id' => $g, ) );
     45        $g_obj = groups_get_group( $g );
    4646
    4747        $expected = sprintf( __( '%s joined the group %s', 'buddypress' ), bp_core_get_userlink( $u ),  '<a href="' . bp_get_group_permalink( $g_obj ) . '">' . $g_obj->name . '</a>' );
Note: See TracChangeset for help on using the changeset viewer.