Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (10 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/class-bp-groups-group.php

    r11089 r11091  
    644644                $this->assertEmpty( $found1['groups'] );
    645645
    646                 $group0 = groups_get_group( array( 'group_id' => $groups[0] ) );
     646                $group0 = groups_get_group( $groups[0] );
    647647                $group0->name = 'Foo';
    648648                $group0->save();
     
    669669                $this->assertEqualSets( $groups, wp_list_pluck( $found1['groups'], 'id' ) );
    670670
    671                 $group0 = groups_get_group( array( 'group_id' => $groups[0] ) );
     671                $group0 = groups_get_group( $groups[0] );
    672672                $group0->delete();
    673673
     
    10041004
    10051005                // Prime cache
    1006                 groups_get_group( array( 'group_id' => $g, ) );
     1006                groups_get_group( $g );
    10071007
    10081008                $this->assertNotEmpty( wp_cache_get( $g, 'bp_groups' ) );
     
    10221022
    10231023                // Prime cache
    1024                 groups_get_group( array( 'group_id' => $g, ) );
     1024                groups_get_group( $g );
    10251025
    10261026                $this->assertNotEmpty( wp_cache_get( $g, 'bp_groups' ) );
Note: See TracChangeset for help on using the changeset viewer.