Changeset 5740
- Timestamp:
- 05/13/2015 02:06:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/functions/query.php
r5707 r5740 27 27 $f = $this->factory->forum->create(); 28 28 29 $t his->factory->topic->create_many( 9,array(29 $t1 = $this->factory->topic->create( array( 30 30 'post_parent' => $f, 31 31 ) ); 32 32 33 bbp_update_forum_topic_count( $f ); 33 $t2 = $this->factory->topic->create( array( 34 'post_parent' => $f, 35 ) ); 34 36 35 $count = count( bbp_forum_query_topic_ids( $f ) ); 36 $this->assertSame( 9, $count );; 37 $t3 = $this->factory->topic->create( array( 38 'post_parent' => $f, 39 ) ); 40 41 $this->assertEqualSets( array( $t1, $t2, $t3 ), bbp_forum_query_topic_ids( $f ) ); 37 42 } 38 43 … … 43 48 $f1 = $this->factory->forum->create(); 44 49 45 $f2 = $this->factory->forum->create _many( 9,array(50 $f2 = $this->factory->forum->create( array( 46 51 'post_parent' => $f1, 47 52 ) ); 48 53 49 $count = count( bbp_forum_query_subforum_ids( $f1 ) ); 50 $this->assertSame( 9, $count );; 54 $f3 = $this->factory->forum->create( array( 55 'post_parent' => $f1, 56 ) ); 57 58 $this->assertEqualSets( array( $f2, $f3 ), bbp_forum_query_subforum_ids( $f1 ) ); 51 59 } 52 60
Note: See TracChangeset
for help on using the changeset viewer.