Skip to:
Content

BuddyPress.org

Changeset 9579


Ignore:
Timestamp:
03/02/2015 09:29:11 PM (5 years ago)
Author:
boonebgorges
Message:

Create fewer fixtures in BP_Tests_Groups_Template::test_bp_group_has_invites_pagination().

File:
1 edited

Legend:

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

    r9578 r9579  
    530530        $users = array();
    531531        $now = time();
    532         for ( $i = 1; $i < 15; $i++ ) {
     532        for ( $i = 1; $i < 6; $i++ ) {
    533533            $users[ $i ] = $this->factory->user->create( array(
    534534                'last_activity' => gmdate( 'Y-m-d H:i:s', $now - $i ),
     
    548548            'user_id' => $u1,
    549549            'page' => 2,
    550             'per_page' => 5,
     550            'per_page' => 2,
    551551        ) );
    552552
    553553        global $invites_template;
    554554
    555         $this->assertEquals( array( $users[ 9 ], $users[ 8 ], $users[ 7 ], $users[ 6 ], $users[ 5 ], ), $invites_template->invites );
     555        $this->assertEquals( array( $users[ 3 ], $users[ 2 ] ), $invites_template->invites );
    556556    }
    557557
Note: See TracChangeset for help on using the changeset viewer.