- Timestamp:
- 12/06/2017 04:18:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/class-bp-groups-group.php
r11737 r11762 2235 2235 } 2236 2236 2237 /** 2238 * @group get_ids_only 2239 */ 2240 public function test_get_return_ids_only() { 2241 $now = time(); 2242 $g1 = $this->factory->group->create( array( 2243 'last_activity' => date( 'Y-m-d H:i:s', $now - 60*60 ), 2244 ) ); 2245 $g2 = $this->factory->group->create( array( 2246 'last_activity' => date( 'Y-m-d H:i:s', $now - 60*60*2 ), 2247 ) ); 2248 $g3 = $this->factory->group->create( array( 2249 'last_activity' => date( 'Y-m-d H:i:s', $now - 60*60*3 ), 2250 ) ); 2251 2252 $groups = BP_Groups_Group::get( array( 2253 'fields' => 'ids', 2254 ) ); 2255 2256 $this->assertSame( array( $g1, $g2, $g3 ), $groups['groups'] ); 2257 } 2258 2237 2259 } 2238 2260
Note: See TracChangeset
for help on using the changeset viewer.