Changeset 5710
- Timestamp:
- 04/24/2015 02:22:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/functions/counts.php
r5707 r5710 32 32 33 33 $count = bbp_get_forum_topic_count_hidden( $f ); 34 $this->assertSame( 0, $count );34 $this->assertSame( '0', $count ); 35 35 36 36 bbp_bump_forum_topic_count_hidden( $f ); 37 37 38 38 $count = bbp_get_forum_topic_count_hidden( $f ); 39 $this->assertSame( 1, $count );39 $this->assertSame( '1', $count ); 40 40 } 41 41 … … 84 84 */ 85 85 public function test_bbp_update_forum_topic_count() { 86 // 186 // Create a top level forum f1 87 87 $f1 = $this->factory->forum->create(); 88 88 … … 92 92 $this->assertSame( '0', $count ); 93 93 94 // 4-1894 // Create 3 topics in f1 95 95 $t = $this->factory->topic->create_many( 3, array( 96 96 'post_parent' => $f1, … … 102 102 $this->assertSame( '3', $count ); 103 103 104 // 19104 // Create a new sub forum of f1 105 105 $f2 = $this->factory->forum->create( array( 106 106 'post_parent' => $f1, 107 107 ) ); 108 108 109 // 20109 // Create another sub forum of f1 110 110 $f3 = $this->factory->forum->create( array( 111 111 'post_parent' => $f1, … … 123 123 $this->assertSame( '0', $count ); 124 124 125 // 35-39125 // Create some topics in forum f2 126 126 $this->factory->topic->create_many( 4, array( 127 127 'post_parent' => $f2, … … 139 139 $this->assertSame( '0', $count ); 140 140 141 // 35-39141 // Create some topics in forum f3 142 142 $this->factory->topic->create_many( 5, array( 143 143 'post_parent' => $f3,
Note: See TracChangeset
for help on using the changeset viewer.