- Timestamp:
- 08/09/2018 07:53:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/functions/counts.php
r6036 r6848 415 415 $f1 = $this->factory->forum->create(); 416 416 417 $count = bbp_get_forum_subforum_count( $f1, true ); 418 $this->assertSame( 0, $count ); 419 417 420 $f2 = $this->factory->forum->create_many( 3, array( 418 421 'post_parent' => $f1, … … 420 423 421 424 $count = bbp_get_forum_subforum_count( $f1, true ); 422 $this->assertSame( 0, $count ); 425 $this->assertSame( 3, $count ); 426 427 bbp_update_forum_subforum_count( $f1, 10 ); 428 429 $count = bbp_get_forum_subforum_count( $f1, true ); 430 $this->assertSame( 10, $count ); 423 431 424 432 bbp_update_forum_subforum_count( $f1 );
Note: See TracChangeset
for help on using the changeset viewer.