Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/15/2014 08:09:42 PM (11 years ago)
Author:
boonebgorges
Message:

Set group last_activity values explicitly in bp_group_is_user_banned() test

This ensures that they'll be loaded in the correct order during the
bp_has_groups() loop.

File:
1 edited

Legend:

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

    r8552 r8614  
    710710        ) );
    711711
    712         $g1 = $this->factory->group->create( array( 'creator_id' => $u1 ) );
    713         $g2 = $this->factory->group->create( array( 'creator_id' => $u2 ) );
     712        $g1 = $this->factory->group->create( array(
     713            'creator_id' => $u1,
     714            'last_activity' => $now - 100,
     715        ) );
     716        $g2 = $this->factory->group->create( array(
     717            'creator_id' => $u2,
     718            'last_activity' => $now - 200,
     719        ) );
    714720
    715721        $this->add_user_to_group( $u1, $g2, array(
Note: See TracChangeset for help on using the changeset viewer.