Skip to:
Content

BuddyPress.org

Changeset 7321


Ignore:
Timestamp:
07/27/2013 06:06:14 PM (11 years ago)
Author:
boonebgorges
Message:

Fixes date_modified on a group test

File:
1 edited

Legend:

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

    r7294 r7321  
    279279     */
    280280    public function test_bp_group_has_members_with_exclude_admins_mods_0() {
    281         $g = $this->factory->group->create();
    282281        $u1 = $this->create_user();
    283282        $u2 = $this->create_user();
    284283        $u3 = $this->create_user();
    285 
    286         $this->add_user_to_group( $u1, $g );
    287         $this->add_user_to_group( $u2, $g );
    288         $this->add_user_to_group( $u3, $g );
     284        $g = $this->factory->group->create( array(
     285            'creator_id' => $u1,
     286        ) );
     287
     288        $now = time();
     289        $this->add_user_to_group( $u2, $g, array(
     290            'date_modified' => $now - 60,
     291        ) );
     292        $this->add_user_to_group( $u3, $g, array(
     293            'date_modified' => $now - 60*60,
     294        ) );
    289295
    290296        $m1 = new BP_Groups_Member( $u1, $g );
Note: See TracChangeset for help on using the changeset viewer.