Changeset 8125 for trunk/tests/testcases/activity/functions.php
- Timestamp:
- 03/13/2014 06:34:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/activity/functions.php
r8076 r8125 539 539 540 540 remove_filter( 'bp_is_username_compatibility_mode', '__return_true' ); 541 } 542 543 /** 544 * @group activity_action 545 * @group bp_activity_format_activity_action_activity_update 546 */ 547 public function test_bp_activity_format_activity_action_activity_update() { 548 $u = $this->create_user(); 549 $a = $this->factory->activity->create( array( 550 'component' => buddypress()->activity->id, 551 'type' => 'activity_update', 552 'user_id' => $u, 553 ) ); 554 555 $a_obj = new BP_Activity_Activity( $a ); 556 557 $expected = sprintf( '%s posted an update', bp_core_get_userlink( $u ) ); 558 559 $this->assertSame( $expected, $a_obj->action ); 560 } 561 562 /** 563 * @group activity_action 564 * @group bp_activity_format_activity_action_activity_comment 565 */ 566 public function test_bp_activity_format_activity_action_activity_comment() { 567 $u = $this->create_user(); 568 $a = $this->factory->activity->create( array( 569 'component' => buddypress()->activity->id, 570 'type' => 'activity_comment', 571 'user_id' => $u, 572 ) ); 573 574 $a_obj = new BP_Activity_Activity( $a ); 575 576 $expected = sprintf( '%s posted a new activity comment', bp_core_get_userlink( $u ) ); 577 578 $this->assertSame( $expected, $a_obj->action ); 541 579 } 542 580
Note: See TracChangeset
for help on using the changeset viewer.