Changeset 11737 for trunk/tests/phpunit/testcases/groups/cache.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/cache.php
r11091 r11737 10 10 */ 11 11 public function test_bp_groups_update_meta_cache() { 12 $g1 = $this->factory->group->create();13 $g2 = $this->factory->group->create();12 $g1 = self::factory()->group->create(); 13 $g2 = self::factory()->group->create(); 14 14 15 15 $time = bp_core_current_time(); … … 71 71 */ 72 72 public function test_bp_groups_delete_group_cache_on_metadata_add() { 73 $g = $this->factory->group->create();73 $g = self::factory()->group->create(); 74 74 75 75 // Prime cache … … 89 89 */ 90 90 public function test_bp_groups_delete_group_cache_on_metadata_change() { 91 $g = $this->factory->group->create();91 $g = self::factory()->group->create(); 92 92 93 93 // Prime cache … … 106 106 */ 107 107 public function test_bp_groups_prefetch_activity_object_data_all_cached() { 108 $g = $this->factory->group->create();108 $g = self::factory()->group->create(); 109 109 110 110 // Prime cache … … 130 130 */ 131 131 public function test_bp_groups_prefetch_activity_object_data_some_cached() { 132 $g1 = $this->factory->group->create();133 $g2 = $this->factory->group->create();132 $g1 = self::factory()->group->create(); 133 $g2 = self::factory()->group->create(); 134 134 135 135 // Prime cache … … 160 160 */ 161 161 public function test_groups_get_group_admins_cache() { 162 $u1 = $this->factory->user->create();163 $u2 = $this->factory->user->create();164 $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );162 $u1 = self::factory()->user->create(); 163 $u2 = self::factory()->user->create(); 164 $g = self::factory()->group->create( array( 'creator_id' => $u1 ) ); 165 165 166 166 // User 2 joins the group … … 185 185 */ 186 186 public function test_groups_get_group_mods_cache() { 187 $u1 = $this->factory->user->create();188 $u2 = $this->factory->user->create();189 $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );187 $u1 = self::factory()->user->create(); 188 $u2 = self::factory()->user->create(); 189 $g = self::factory()->group->create( array( 'creator_id' => $u1 ) ); 190 190 191 191 // User 2 joins the group … … 207 207 */ 208 208 public function test_groups_get_group_mods_cache_on_member_save() { 209 $u1 = $this->factory->user->create();210 $u2 = $this->factory->user->create();211 $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );209 $u1 = self::factory()->user->create(); 210 $u2 = self::factory()->user->create(); 211 $g = self::factory()->group->create( array( 'creator_id' => $u1 ) ); 212 212 213 213 // prime cache … … 225 225 */ 226 226 public function test_groups_get_group_admins_cache_on_member_save() { 227 $u1 = $this->factory->user->create();228 $u2 = $this->factory->user->create();229 $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );227 $u1 = self::factory()->user->create(); 228 $u2 = self::factory()->user->create(); 229 $g = self::factory()->group->create( array( 'creator_id' => $u1 ) ); 230 230 231 231 // prime cache
Note: See TracChangeset
for help on using the changeset viewer.