Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/07/2014 02:41:15 AM (12 years ago)
Author:
boonebgorges
Message:

Use specific users when creating activity items in test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/activity/class.BP_Activity_Activity.php

    r7774 r7822  
    315315    public function test_get_activity_comments_format() {
    316316        $now = time();
     317        $u1 = $this->create_user();
     318        $u2 = $this->create_user();
     319
    317320        $a1 = $this->factory->activity->create( array(
    318321            'content' => 'Life Rules',
    319322            'recorded_time' => date( 'Y-m-d H:i:s', $now ),
     323            'user_id' => $u1,
    320324        ) );
    321325        $a2 = bp_activity_new_comment( array(
     
    323327            'content' => 'Candy is good',
    324328            'recorded_time' => date( 'Y-m-d H:i:s', $now - 50 ),
     329            'user_id' => $u1,
    325330        ) );
    326331        $a3 = bp_activity_new_comment( array(
     
    328333            'content' => 'Bread is good',
    329334            'recorded_time' => date( 'Y-m-d H:i:s', $now - 25 ),
     335            'user_id' => $u2,
    330336        ) );
    331337
Note: See TracChangeset for help on using the changeset viewer.