- Timestamp:
- 11/14/2021 03:51:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/class.BP_Activity_Activity.php
r12604 r13150 465 465 ) ); 466 466 467 $activity = BP_Activity_Activity::get_id( false, false, false, 523, false, false, false, false ); 467 $args = array( 468 'item_id' => 523, 469 ); 470 471 $activity = BP_Activity_Activity::get_id( $args ); 468 472 $this->assertEquals( $a1, $activity ); 469 473 } … … 471 475 /** 472 476 * @group get_id 477 * @group BP8596 478 * @expectedDeprecated BP_Activity_Activity::get_id 479 */ 480 public function test_get_id_with_deprecated_args() { 481 $a1 = self::factory()->activity->create( array( 482 'item_id' => 573, 483 ) ); 484 $a2 = self::factory()->activity->create( array( 485 'item_id' => 1098, 486 ) ); 487 488 $activity = BP_Activity_Activity::get_id( false, false, false, 1098, false, false, false, false ); 489 $this->assertEquals( $a2, $activity ); 490 } 491 492 /** 493 * @group get_id 473 494 */ 474 495 public function test_get_id_with_secondary_item_id() { … … 480 501 ) ); 481 502 482 $activity = BP_Activity_Activity::get_id( false, false, false, false, 523, false, false, false ); 503 $args = array( 504 'secondary_item_id' => 523, 505 ); 506 507 $activity = BP_Activity_Activity::get_id( $args ); 483 508 $this->assertEquals( $a1, $activity ); 484 509 }
Note: See TracChangeset
for help on using the changeset viewer.