Skip to:
Content

bbPress.org

Ticket #2844: 2844-test.diff

File 2844-test.diff, 1.5 KB (added by netweb, 8 years ago)
  • tests/phpunit/testcases/replies/functions/reply.php

     
    3232                        ),
    3333                ) );
    3434
     35                $reply = bbp_get_reply( $r );
     36
    3537                // reply post
    3638                $this->assertSame( 'Reply To: Topic 1', bbp_get_reply_title( $r ) );
    3739                $this->assertSame( 'publish', bbp_get_reply_status( $r ) );
    3840                $this->assertSame( $t, wp_get_post_parent_id( $r ) ); // post parent
     41                $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?reply=' . $reply->post_name, $reply->guid );
    3942
    4043                // reply meta
    4144                $this->assertSame( $f, bbp_get_reply_forum_id( $r ) ); // _bbp_forum_id
  • tests/phpunit/testcases/topics/functions/topic.php

     
    3737                        ),
    3838                ) );
    3939
     40                $topic = bbp_get_topic( $t );
     41
    4042                // Topic post
    4143                $this->assertSame( 'Topic 1', bbp_get_topic_title( $t ) );
    4244                $this->assertSame( 'publish', bbp_get_topic_status( $t ) );
    4345                $this->assertSame( $f, wp_get_post_parent_id( $t ) ); // post parent
     46                $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?topic=' . $topic->post_name, $topic->guid );
    4447
    4548                // Topic meta
    4649                $this->assertSame( $f, bbp_get_topic_forum_id( $t ) ); // _bbp_forum_id