Changeset 11737 for trunk/tests/phpunit/testcases/groups/activity.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/activity.php
r11557 r11737 11 11 */ 12 12 public function test_bp_groups_format_activity_action_created_group() { 13 $u = $this->factory->user->create();14 $g = $this->factory->group->create();15 $a = $this->factory->activity->create( array(13 $u = self::factory()->user->create(); 14 $g = self::factory()->group->create(); 15 $a = self::factory()->activity->create( array( 16 16 'component' => buddypress()->groups->id, 17 17 'type' => 'created_group', … … 33 33 */ 34 34 public function test_bp_groups_format_activity_action_joined_group() { 35 $u = $this->factory->user->create();36 $g = $this->factory->group->create();37 $a = $this->factory->activity->create( array(35 $u = self::factory()->user->create(); 36 $g = self::factory()->group->create(); 37 $a = self::factory()->activity->create( array( 38 38 'component' => buddypress()->groups->id, 39 39 'type' => 'joined_group', … … 55 55 */ 56 56 public function test_bp_groups_format_activity_action_group_details_updated_with_no_change() { 57 $group = $this->factory->group->create_and_get();57 $group = self::factory()->group->create_and_get(); 58 58 groups_edit_base_group_details( array( 59 59 'group_id' => $group->id, … … 78 78 */ 79 79 public function test_bp_groups_format_activity_action_group_details_updated_with_notify_members_false() { 80 $group = $this->factory->group->create_and_get();80 $group = self::factory()->group->create_and_get(); 81 81 groups_edit_base_group_details( array( 82 82 'group_id' => $group->id, … … 102 102 public function test_bp_groups_format_activity_action_group_details_updated_with_updated_name() { 103 103 $old_user = get_current_user_id(); 104 $u = $this->factory->user->create();105 $this->set_current_user( $u ); 106 107 $group = $this->factory->group->create_and_get();104 $u = self::factory()->user->create(); 105 $this->set_current_user( $u ); 106 107 $group = self::factory()->group->create_and_get(); 108 108 groups_edit_base_group_details( array( 109 109 'group_id' => $group->id, … … 134 134 public function test_bp_groups_format_activity_action_group_details_updated_with_updated_description() { 135 135 $old_user = get_current_user_id(); 136 $u = $this->factory->user->create();137 $this->set_current_user( $u ); 138 139 $group = $this->factory->group->create_and_get();136 $u = self::factory()->user->create(); 137 $this->set_current_user( $u ); 138 139 $group = self::factory()->group->create_and_get(); 140 140 groups_edit_base_group_details( array( 141 141 'group_id' => $group->id, … … 166 166 public function test_bp_groups_format_activity_action_group_details_updated_with_updated_slug() { 167 167 $old_user = get_current_user_id(); 168 $u = $this->factory->user->create();169 $this->set_current_user( $u ); 170 171 $group = $this->factory->group->create_and_get();168 $u = self::factory()->user->create(); 169 $this->set_current_user( $u ); 170 171 $group = self::factory()->group->create_and_get(); 172 172 groups_edit_base_group_details( array( 173 173 'group_id' => $group->id, … … 199 199 public function test_bp_groups_format_activity_action_group_details_updated_with_updated_name_and_description() { 200 200 $old_user = get_current_user_id(); 201 $u = $this->factory->user->create();202 $this->set_current_user( $u ); 203 204 $group = $this->factory->group->create_and_get();201 $u = self::factory()->user->create(); 202 $this->set_current_user( $u ); 203 204 $group = self::factory()->group->create_and_get(); 205 205 groups_edit_base_group_details( array( 206 206 'group_id' => $group->id,
Note: See TracChangeset
for help on using the changeset viewer.