Skip to:
Content

BuddyPress.org

Changeset 9578


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

Create fewer fixtures in BP_Tests_Groups_Template::test_bp_group_has_membership_requests_results().

This shaves some time off the running of the suite.

File:
1 edited

Legend:

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

    r9561 r9578  
    574574        $users = array();
    575575        $memberships = array();
    576         for ( $i = 1; $i < 15; $i++ ) {
     576        for ( $i = 1; $i < 5; $i++ ) {
    577577            $users[ $i ] = $this->factory->user->create( array(
    578578                'last_activity' => gmdate( 'Y-m-d H:i:s', $now - ( 100 - $i ) ),
     
    606606        bp_group_has_membership_requests( array(
    607607            'group_id' => $g,
     608            'per_page' => 3,
    608609        ) );
    609610
     
    612613        $expected_user_ids = array();
    613614        $expected_mem_ids = array();
    614         for ( $j = 1; $j <= 10; $j++ ) {
     615        for ( $j = 1; $j <= 3; $j++ ) {
    615616            $expected_user_ids[] = (string) $users[ $j ];
    616617            $expected_mem_ids[] = (string) $memberships[ $j ];
Note: See TracChangeset for help on using the changeset viewer.