Changeset 11737 for trunk/tests/phpunit/testcases/blogs/cache.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/cache.php
r9839 r11737 14 14 } 15 15 16 $b1 = $this->factory->blog->create();17 $b2 = $this->factory->blog->create();16 $b1 = self::factory()->blog->create(); 17 $b2 = self::factory()->blog->create(); 18 18 19 19 bp_blogs_add_blogmeta( $b1, 'foo', 'bar' ); … … 95 95 } 96 96 97 $u = $this->factory->user->create();97 $u = self::factory()->user->create(); 98 98 99 99 // Switch user so we have access to non-public blogs … … 101 101 $this->set_current_user( $u ); 102 102 103 $b1 = $this->factory->blog->create();104 $b2 = $this->factory->blog->create();103 $b1 = self::factory()->blog->create(); 104 $b2 = self::factory()->blog->create(); 105 105 106 106 bp_blogs_record_blog( $b1, $u, true ); … … 189 189 } 190 190 191 $u = $this->factory->user->create();191 $u = self::factory()->user->create(); 192 192 193 193 // Switch user so we have access to non-public blogs … … 195 195 $this->set_current_user( $u ); 196 196 197 $b1 = $this->factory->blog->create();198 $b2 = $this->factory->blog->create();197 $b1 = self::factory()->blog->create(); 198 $b2 = self::factory()->blog->create(); 199 199 200 200 bp_blogs_record_blog( $b1, $u, true ); … … 264 264 } 265 265 266 $u = $this->factory->user->create();266 $u = self::factory()->user->create(); 267 267 268 268 // need to make sure we set the 'public' flag due to how BP_Blogs_Blogs:get_all() works 269 $b1 = $this->factory->blog->create( array(269 $b1 = self::factory()->blog->create( array( 270 270 'meta' => array( 271 271 'public' => 1 272 272 ) 273 273 ) ); 274 $b2 = $this->factory->blog->create( array(274 $b2 = self::factory()->blog->create( array( 275 275 'meta' => array( 276 276 'public' => 1 … … 298 298 } 299 299 300 $u = $this->factory->user->create();301 302 $b1 = $this->factory->blog->create();300 $u = self::factory()->user->create(); 301 302 $b1 = self::factory()->blog->create(); 303 303 bp_blogs_record_blog( $b1, $u, true ); 304 304
Note: See TracChangeset
for help on using the changeset viewer.