Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/07/2015 09:54:05 AM (9 years ago)
Author:
netweb
Message:

Tests: Update tests to always include a parent topic for replies

This changeset ensures replies always have a parent topic which in turn ensures each reply is created with an accurate menu_order position.

Fixes #2843

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/replies/template/post_type.php

    r5746 r5890  
    1515     */
    1616    public function test_bbp_reply_post_type() {
    17         $r = $this->factory->reply->create();
     17        $t = $this->factory->topic->create();
     18
     19        $r = $this->factory->reply->create( array(
     20            'post_parent' => $t,
     21            'reply_meta' => array(
     22                'topic_id' => $t,
     23            ),
     24        ) );
    1825
    1926        $robj = get_post_type_object( 'reply' );
Note: See TracChangeset for help on using the changeset viewer.