- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/class-bp-blogs-blog.php
r9980 r11737 13 13 $old_user = get_current_user_id(); 14 14 15 $u = $this->factory->user->create();15 $u = self::factory()->user->create(); 16 16 $this->set_current_user( $u ); 17 $b = $this->factory->blog->create( array(17 $b = self::factory()->blog->create( array( 18 18 'title' => 'The Foo Bar Blog', 19 19 'user_id' => $u, … … 40 40 $old_user = get_current_user_id(); 41 41 42 $u = $this->factory->user->create();42 $u = self::factory()->user->create(); 43 43 $this->set_current_user( $u ); 44 $b = $this->factory->blog->create( array(44 $b = self::factory()->blog->create( array( 45 45 'title' => 'The Foo Bar Blog', 46 46 'domain' => __METHOD__, … … 67 67 $old_user = get_current_user_id(); 68 68 69 $u = $this->factory->user->create();69 $u = self::factory()->user->create(); 70 70 $this->set_current_user( $u ); 71 $b = $this->factory->blog->create( array(71 $b = self::factory()->blog->create( array( 72 72 'title' => 'The Foo Bar Blog', 73 73 'user_id' => $u, … … 95 95 $old_user = get_current_user_id(); 96 96 97 $u = $this->factory->user->create();97 $u = self::factory()->user->create(); 98 98 $this->set_current_user( $u ); 99 $b = $this->factory->blog->create( array(99 $b = self::factory()->blog->create( array( 100 100 'title' => 'Foo Bar Blog', 101 101 'user_id' => $u, … … 123 123 $old_user = get_current_user_id(); 124 124 125 $u = $this->factory->user->create();125 $u = self::factory()->user->create(); 126 126 $this->set_current_user( $u ); 127 127 $bs = array( 128 'foobar' => $this->factory->blog->create( array(128 'foobar' => self::factory()->blog->create( array( 129 129 'title' => 'Foo Bar Blog', 130 130 'user_id' => $u, 131 131 'path' => '/path' . rand() . time() . '/', 132 132 ) ), 133 'barfoo' => $this->factory->blog->create( array(133 'barfoo' => self::factory()->blog->create( array( 134 134 'title' => 'Bar foo Blog', 135 135 'user_id' => $u,
Note: See TracChangeset
for help on using the changeset viewer.