Skip to:
Content

bbPress.org

Changeset 5767


Ignore:
Timestamp:
05/13/2015 10:29:40 AM (9 years ago)
Author:
netweb
Message:

Tests: Improved performance of forum component count template function tests

Props thebrandonallen. See #2801

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/forums/template/counts.php

    r5708 r5767  
    1616    public function test_bbp_get_forum_subforum_count() {
    1717        $f1 = $this->factory->forum->create();
    18         $int_value = 9;
     18        $int_value = 3;
    1919        $formatted_value = bbp_number_format( $int_value );
    2020
     
    4949    public function test_bbp_get_forum_topic_count() {
    5050        $f = $this->factory->forum->create();
    51         $int_value = 9;
     51        $int_value = 3;
    5252        $formatted_value = bbp_number_format( $int_value );
    5353
     
    8282        ) );
    8383
    84         $int_value = 9;
     84        $int_value = 3;
    8585        $formatted_value = bbp_number_format( $int_value );
    8686
     
    115115        ) );
    116116
    117         $int_value = 9;
     117        $int_value = 3;
    118118
    119119        // Topic + Replies
    120         $result = 10;
     120        $result = 4;
    121121        $formatted_result = bbp_number_format( $result );
    122122
     
    148148    public function test_bbp_get_forum_topic_count_hidden() {
    149149        $f = $this->factory->forum->create();
    150         $int_value = 9;
     150        $int_value = 3;
    151151        $formatted_value = bbp_number_format( $int_value );
    152152
Note: See TracChangeset for help on using the changeset viewer.