Changeset 5721 for trunk/tests/phpunit/testcases/forums/template/forum.php
- Timestamp:
- 05/10/2015 03:26:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/template/forum.php
r5706 r5721 37 37 */ 38 38 public function test_bbp_get_forum_permalink() { 39 40 if ( is_multisite() ) { 41 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' ); 42 } 43 39 44 $f = $this->factory->forum->create(); 40 45 … … 87 92 */ 88 93 public function test_bbp_get_forum_freshness_link() { 94 95 if ( is_multisite() ) { 96 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' ); 97 } 98 89 99 $f = $this->factory->forum->create(); 90 100 … … 158 168 * @covers ::bbp_forum_subscription_link 159 169 * @covers ::bbp_get_forum_subscription_link 170 * @todo Implement test_bbp_get_forum_subscription_link(). 160 171 */ 161 172 public function test_bbp_get_forum_subscription_link() { 162 $f = $this->factory->forum->create(); 163 164 bbp_update_forum( array( 165 'forum_id' => $f, 166 ) ); 167 168 $link = bbp_get_forum_subscription_link( array( 169 'forum_id' => $f, 170 ) ); 171 172 $this->assertSame( 'http://todo', $link ); 173 // Remove the following lines when you implement this test. 174 $this->markTestIncomplete( 175 'This test has not been implemented yet.' 176 ); 173 177 } 174 178 … … 176 180 * @covers ::bbp_forum_topics_link 177 181 * @covers ::bbp_get_forum_topics_link 182 * @todo Implement test_bbp_get_forum_topics_link(). 178 183 */ 179 184 public function test_bbp_get_forum_topics_link() { 180 $f = $this->factory->forum->create(); 181 182 $t = $this->factory->topic->create( array( 183 'post_parent' => $f, 184 ) ); 185 186 bbp_update_forum( array( 187 'forum_id' => $f, 188 ) ); 189 190 $forum = bbp_get_forum_topics_link( $f ); 191 $this->assertSame( 'http://todo', $forum ); 185 // Remove the following lines when you implement this test. 186 $this->markTestIncomplete( 187 'This test has not been implemented yet.' 188 ); 192 189 } 193 190 … … 195 192 * @covers ::bbp_forum_class 196 193 * @covers ::bbp_get_forum_class 194 * @todo Implement test_bbp_get_forum_class(). 197 195 */ 198 196 public function test_bbp_get_forum_class() { 199 $f = $this->factory->forum->create();200 201 $forum = bbp_get_forum_class( $f );202 $this->assertSame( 'class="loop-item--1 even bbp-forum-status-open bbp-forum-visibility-publish post-' . bbp_get_forum_id( $f ) . ' forum type-forum status-publish hentry"', $forum);197 // Remove the following lines when you implement this test. 198 $this->markTestIncomplete( 199 'This test has not been implemented yet.' 200 ); 203 201 } 204 202
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)