Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/27/2015 01:07:53 PM (6 years ago)
Author:
netweb
Message:

Tests: Updated bbPress PHPUnit test suite compatibility with upstream WordPress changes.

  • [WP35244] WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static), updated bbPress unit tests where explicitly set content and titles are required.

Props thebrandonallen. Fixes #2883

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/replies/functions/reply.php

    r5925 r5947  
    2626
    2727        $r = $this->factory->reply->create( array(
     28            'post_title' => 'Reply To: Topic 1',
     29            'post_content' => 'Content of reply to Topic 1',
    2830            'post_parent' => $t,
    2931            'reply_meta' => array(
     
    3638        $reply = bbp_get_reply( $r );
    3739
     40        remove_all_filters( 'bbp_get_reply_content' );
     41
    3842        // Reply post.
    3943        $this->assertSame( 'Reply To: Topic 1', bbp_get_reply_title( $r ) );
     44        $this->assertSame( 'Content of reply to Topic 1', bbp_get_reply_content( $r ) );
    4045        $this->assertSame( 'publish', bbp_get_reply_status( $r ) );
    4146        $this->assertSame( $t, wp_get_post_parent_id( $r ) );
Note: See TracChangeset for help on using the changeset viewer.