Changeset 11737 for trunk/tests/phpunit/testcases/groups/notifications.php
- Timestamp:
- 11/03/2017 07:44:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/notifications.php
r11278 r11737 14 14 parent::setUp(); 15 15 $this->current_user = get_current_user_id(); 16 $this->set_current_user( $this->factory->user->create() );17 18 $this->requesting_user_id = $this->factory->user->create();19 $this->group = $this->factory->group->create();16 $this->set_current_user( self::factory()->user->create() ); 17 18 $this->requesting_user_id = self::factory()->user->create(); 19 $this->group = self::factory()->group->create(); 20 20 $this->filter_fired = ''; 21 21 } … … 167 167 168 168 // Admin 169 $n = $this->factory->notification->create( array(169 $n = self::factory()->notification->create( array( 170 170 'component_name' => 'groups', 171 171 'user_id' => $u, … … 191 191 192 192 // Mod 193 $n = $this->factory->notification->create( array(193 $n = self::factory()->notification->create( array( 194 194 'component_name' => 'groups', 195 195 'user_id' => $u, … … 224 224 */ 225 225 public function test_membership_request_notifications_should_be_cleared_when_request_is_accepted() { 226 $users = $this->factory->user->create_many( 3 );226 $users = self::factory()->user->create_many( 3 ); 227 227 228 228 $this->add_user_to_group( $users[0], $this->group, array(
Note: See TracChangeset
for help on using the changeset viewer.