Changeset 8521
- Timestamp:
- 06/15/2014 01:22:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/functions.php
r8237 r8521 738 738 } 739 739 740 /** 741 * @group bp_activity_post_update 742 */ 743 public function test_bp_activity_post_update_empty_content() { 744 $this->assertFalse( bp_activity_post_update( array( 'user_id' => 3, ) ) ); 745 } 746 747 /** 748 * @group bp_activity_post_update 749 */ 750 public function test_bp_activity_post_update_inactive_user() { 751 $this->assertFalse( bp_activity_post_update( array( 752 'user_id' => 3456, 753 'content' => 'foo', 754 ) ) ); 755 } 756 757 /** 758 * @group bp_activity_post_update 759 */ 760 public function test_bp_activity_post_update_success() { 761 $u = $this->create_user(); 762 763 $a = bp_activity_post_update( array( 764 'user_id' => $u, 765 'content' => 'foo', 766 ) ); 767 768 $this->assertNotEmpty( $a ); 769 } 770 740 771 public function check_activity_caches() { 741 772 foreach ( $this->acaches as $k => $v ) {
Note: See TracChangeset
for help on using the changeset viewer.