Changeset 5719 for trunk/tests/phpunit/testcases/topics/template/counts.php
- Timestamp:
- 05/03/2015 01:19:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/topics/template/counts.php
r5717 r5719 34 34 ) ); 35 35 36 // @todo Investigate caching issues in bbp_get_public_child_count() 37 wp_cache_flush(); 38 36 39 bbp_update_topic_reply_count( $t ); 37 40 38 41 // Output 39 $count = bbp_get_topic_reply_count( $t, true, false );40 42 $this->expectOutputString( $formatted_value ); 41 43 bbp_topic_reply_count( $t ); 42 44 43 45 // Formatted string 44 $count = bbp_get_topic_reply_count( $t, true,false );46 $count = bbp_get_topic_reply_count( $t, false ); 45 47 $this->assertSame( $formatted_value, $count ); 46 48 47 49 // Integer 48 $count = bbp_get_topic_reply_count( $t, true , true);50 $count = bbp_get_topic_reply_count( $t, true ); 49 51 $this->assertSame( $int_value, $count ); 50 52 } … … 77 79 ) ); 78 80 81 // @todo Investigate caching issues in bbp_get_public_child_count() 82 wp_cache_flush(); 83 79 84 bbp_update_topic_reply_count( $t ); 80 85 81 86 // Output 82 $count = bbp_get_topic_post_count( $t, true, false );83 87 $this->expectOutputString( $formatted_value ); 84 88 bbp_topic_post_count( $t ); 85 89 86 90 // Formatted string 87 $count = bbp_get_topic_post_count( $t, true,false );91 $count = bbp_get_topic_post_count( $t, false ); 88 92 $this->assertSame( $formatted_value, $count ); 89 93 90 94 // Integer 91 $count = bbp_get_topic_post_count( $t, true , true);95 $count = bbp_get_topic_post_count( $t, true ); 92 96 $this->assertSame( $int_value, $count ); 93 97 } … … 124 128 125 129 // Output 126 $count = bbp_get_topic_reply_count_hidden( $t, false );127 130 $this->expectOutputString( $formatted_value ); 128 131 bbp_topic_reply_count_hidden( $t ); … … 133 136 134 137 // Integer 135 $count = bbp_get_topic_reply_count_hidden( $t, true , true);138 $count = bbp_get_topic_reply_count_hidden( $t, true ); 136 139 $this->assertSame( $int_value, $count ); 137 140 } … … 176 179 177 180 // Output 178 $count = bbp_get_topic_voice_count( $t, true, false );179 181 $this->expectOutputString( $formatted_value ); 180 182 bbp_topic_voice_count( $t ); 181 183 182 184 // Formatted string 183 $count = bbp_get_topic_voice_count( $t, true,false );185 $count = bbp_get_topic_voice_count( $t, false ); 184 186 $this->assertSame( $formatted_value, $count ); 185 187 186 188 // Integer 187 $count = bbp_get_topic_voice_count( $t, true , true);189 $count = bbp_get_topic_voice_count( $t, true ); 188 190 $this->assertSame( $int_value, $count ); 189 191 }
Note: See TracChangeset
for help on using the changeset viewer.