Changeset 7107 for trunk/tests/testcases/activity/template.php
- Timestamp:
- 05/27/2013 12:50:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/activity/template.php
r7047 r7107 68 68 $user_id = $this->factory->user->create( array( 'role' => 'subscriber' ) ); 69 69 70 $now = time(); 71 70 72 $a1 = $this->factory->activity->create( array( 71 73 'type' => 'activity_update', 74 'recorded_time' => date( 'Y-m-d H:i:s', $now ), 72 75 ) ); 73 76 74 77 $a2 = $this->factory->activity->create( array( 75 78 'type' => 'joined_group', 79 'recorded_time' => date( 'Y-m-d H:i:s', $now - 100 ), 76 80 ) ); 77 81 … … 93 97 $ids = wp_list_pluck( $activities_template->activities, 'id' ); 94 98 95 $this->assertEquals( $ids, array( $a1, $a2 ));99 $this->assertEquals( array( $a1, $a2 ), $ids ); 96 100 97 101 $activities_template = null; … … 108 112 $ids = wp_list_pluck( $activities_template->activities, 'id' ); 109 113 110 $this->assertEquals( $ids, array( $a1 ));114 $this->assertEquals( array( $a1 ), $ids ); 111 115 112 116 $activities_template = null;
Note: See TracChangeset
for help on using the changeset viewer.