Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/07/2013 11:16:17 AM (12 years ago)
Author:
boonebgorges
Message:

In BP_UnitTestCase::create_user(), default to last_activity one year ago

Setting the default last_activity in the past ensures that queries related to
most recently active/online users will not be disrupted by the accidental
creation of new users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/includes/testcase.php

    r7141 r7188  
    206206        $r = wp_parse_args( $args, array(
    207207            'role' => 'subscriber',
    208             'last_activity' => bp_core_current_time(),
     208            'last_activity' => bp_core_current_time() - 60*60*24*365,
    209209        ) );
    210210
Note: See TracChangeset for help on using the changeset viewer.