Changeset 8237 for trunk/tests/testcases/activity/functions.php
- Timestamp:
- 04/04/2014 07:47:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/activity/functions.php
r8177 r8237 704 704 $a = $this->factory->activity->create(); 705 705 706 bp_activity_add_user_favorite( $a, $u);706 $this->assertTrue( bp_activity_add_user_favorite( $a, $u ) ); 707 707 708 708 $this->assertFalse( bp_activity_add_user_favorite( $a, $u ) ); 709 709 $this->assertSame( array( $a ), bp_activity_get_user_favorites( $u ) ); 710 710 $this->assertEquals( 1, bp_activity_get_meta( $a, 'favorite_count' ) ); 711 } 712 713 /** 714 * @group favorites 715 * @group bp_activity_add_user_favorite 716 */ 717 public function test_add_user_favorite_not_yet_favorited() { 718 $u = $this->create_user(); 719 $a = $this->factory->activity->create(); 720 $this->assertTrue( bp_activity_add_user_favorite( $a, $u ) ); 711 721 } 712 722
Note: See TracChangeset
for help on using the changeset viewer.