Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/24/2015 09:55:26 AM (10 years ago)
Author:
netweb
Message:

Tests: Ensure bbPress' custom post types posts are created with a unique GUID.

Props tharsheblows, netweb. Fixes #2844, see also #WP5305 / wp:changeset:33630.

File:
1 edited

Legend:

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

    r5779 r5925  
    3333        ) );
    3434
    35         // reply post
     35        // Get the reply.
     36        $reply = bbp_get_reply( $r );
     37
     38        // Reply post.
    3639        $this->assertSame( 'Reply To: Topic 1', bbp_get_reply_title( $r ) );
    3740        $this->assertSame( 'publish', bbp_get_reply_status( $r ) );
    38         $this->assertSame( $t, wp_get_post_parent_id( $r ) ); // post parent
    39 
    40         // reply meta
    41         $this->assertSame( $f, bbp_get_reply_forum_id( $r ) ); // _bbp_forum_id
    42         $this->assertSame( $t, bbp_get_reply_topic_id( $r ) ); // _bbp_forum_id
     41        $this->assertSame( $t, wp_get_post_parent_id( $r ) );
     42        $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?reply=' . $reply->post_name, $reply->guid );
     43
     44        // Reply meta.
     45        $this->assertSame( $f, bbp_get_reply_forum_id( $r ) );
     46        $this->assertSame( $t, bbp_get_reply_topic_id( $r ) );
    4347    }
    4448
Note: See TracChangeset for help on using the changeset viewer.