Changeset 5947 for trunk/tests/phpunit/testcases/forums/template/forum.php
- Timestamp:
- 10/27/2015 01:07:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/template/forum.php
r5880 r5947 42 42 } 43 43 44 $f = $this->factory->forum->create(); 44 $f = $this->factory->forum->create( array( 45 'post_title' => 'Forum 1', 46 ) ); 45 47 46 48 $forum_permalink = bbp_get_forum_permalink( $f ); … … 57 59 */ 58 60 public function test_bbp_get_forum_title() { 59 $f = $this->factory->forum->create(); 61 $f = $this->factory->forum->create( array( 62 'post_title' => 'Forum 1', 63 ) ); 60 64 61 65 $forum = bbp_get_forum_title( $f ); … … 81 85 */ 82 86 public function test_bbp_get_forum_content() { 83 $f = $this->factory->forum->create(); 87 $f = $this->factory->forum->create( array( 88 'post_content' => 'Content of Forum 1', 89 ) ); 84 90 85 91 $forum = bbp_get_forum_content( $f ); … … 106 112 107 113 $t = $this->factory->topic->create( array( 114 'post_title' => 'Topic 1', 108 115 'post_parent' => $f, 109 116 'post_date' => $post_date, … … 139 146 140 147 $t1 = $this->factory->topic->create( array( 148 'post_title' => 'Topic 1', 141 149 'post_parent' => $f, 142 150 'post_date' => $post_date_t1, … … 150 158 151 159 $t2 = $this->factory->topic->create( array( 160 'post_title' => 'Topic 2', 152 161 'post_parent' => $f, 153 162 'post_date' => $post_date_t2, … … 166 175 167 176 $t3 = $this->factory->topic->create( array( 177 'post_title' => 'Topic 3', 168 178 'post_parent' => $f, 169 179 'post_date' => $post_date_t3, … … 183 193 184 194 $t4 = $this->factory->topic->create( array( 195 'post_title' => 'Topic 4', 185 196 'post_parent' => $f, 186 197 'post_date' => $post_date_t4, … … 215 226 216 227 $t5 = $this->factory->topic->create( array( 228 'post_title' => 'Topic 5', 217 229 'post_parent' => $f, 218 230 'post_date' => $post_date_t5,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)