Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/09/2013 02:22:04 PM (11 years ago)
Author:
boonebgorges
Message:

In test suite, factory->group->create() should return an id, not an object

For better parity with other factories

File:
1 edited

Legend:

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

    r6950 r7050  
    1515        $g1 = $this->factory->group->create();
    1616        $g2 = $this->factory->group->create();
    17         groups_update_groupmeta( $g1->id, 'foo', 'bar' );
     17        groups_update_groupmeta( $g1, 'foo', 'bar' );
    1818
    1919        global $groups_template;
     
    2828
    2929        $ids = wp_list_pluck( $groups_template->groups, 'id' );
    30         $this->assertEquals( $ids, array( $g1->id, ) );
     30        $this->assertEquals( $ids, array( $g1, ) );
    3131    }
    3232}
Note: See TracChangeset for help on using the changeset viewer.