- Timestamp:
- 06/09/2014 06:33:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/class.BP_Activity_Activity.php
r8251 r8491 136 136 ), 137 137 ), 138 'count_total' => 'count_query', 138 139 ) ); 139 140 … … 312 313 313 314 /** 315 * @group get 316 * @group count_total 317 */ 318 public function test_get_with_count_total() { 319 $a1 = $this->factory->activity->create(); 320 $a2 = $this->factory->activity->create(); 321 322 $activity = BP_Activity_Activity::get( array( 323 'count_total' => 'count_query', 324 ) ); 325 326 $this->assertEquals( 2, $activity['total'] ); 327 } 328 329 /** 330 * @group get 331 * @group count_total 332 */ 333 public function test_get_with_count_total_false() { 334 $a1 = $this->factory->activity->create(); 335 $a2 = $this->factory->activity->create(); 336 337 $activity = BP_Activity_Activity::get( array( 338 'count_total' => false, 339 ) ); 340 341 $this->assertSame( null, $activity['total'] ); 342 } 343 344 /** 345 * @group get 346 * @group count_total 347 */ 348 public function test_get_with_count_total_default_to_false() { 349 $a1 = $this->factory->activity->create(); 350 $a2 = $this->factory->activity->create(); 351 352 $activity = BP_Activity_Activity::get(); 353 354 $this->assertSame( null, $activity['total'] ); 355 } 356 357 /** 314 358 * @group get_id 315 359 */
Note:
See TracChangeset
for help on using the changeset viewer.