Skip to:
Content

bbPress.org

Changeset 5769


Ignore:
Timestamp:
05/14/2015 02:42:07 AM (9 years ago)
Author:
netweb
Message:

Tests: Added integer differential bump count assertions to test_bbp_bump_topic_reply_count() and test_bbp_bump_topic_reply_count_hidden() tests
Props thebrandonallen. See #2801

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/topics/functions/counts.php

    r5719 r5769  
    1919        $this->assertSame( '0', $count );
    2020
    21         bbp_bump_topic_reply_count( $t );
     21        $count = bbp_bump_topic_reply_count( $t );
     22        $this->assertSame( 1, $count );
     23
     24        $count = bbp_bump_topic_reply_count( $t, 3 );
    2225
    2326        $count = bbp_get_topic_reply_count( $t );
    24         $this->assertSame( '1', $count );
     27        $this->assertSame( '4', $count );
    2528    }
    2629
     
    3437        $this->assertSame( '0', $count );
    3538
    36         bbp_bump_topic_reply_count_hidden( $t );
     39        $count = bbp_bump_topic_reply_count_hidden( $t );
     40        $this->assertSame( 1, $count );
     41
     42        bbp_bump_topic_reply_count_hidden( $t, 3 );
    3743
    3844        $count = bbp_get_topic_reply_count_hidden( $t );
    39         $this->assertSame( '1', $count );
     45        $this->assertSame( '4', $count );
    4046    }
    4147
Note: See TracChangeset for help on using the changeset viewer.