Ticket #2844: 2844-test.diff
File 2844-test.diff, 1.5 KB (added by , 8 years ago) |
---|
-
tests/phpunit/testcases/replies/functions/reply.php
32 32 ), 33 33 ) ); 34 34 35 $reply = bbp_get_reply( $r ); 36 35 37 // reply post 36 38 $this->assertSame( 'Reply To: Topic 1', bbp_get_reply_title( $r ) ); 37 39 $this->assertSame( 'publish', bbp_get_reply_status( $r ) ); 38 40 $this->assertSame( $t, wp_get_post_parent_id( $r ) ); // post parent 41 $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?reply=' . $reply->post_name, $reply->guid ); 39 42 40 43 // reply meta 41 44 $this->assertSame( $f, bbp_get_reply_forum_id( $r ) ); // _bbp_forum_id -
tests/phpunit/testcases/topics/functions/topic.php
37 37 ), 38 38 ) ); 39 39 40 $topic = bbp_get_topic( $t ); 41 40 42 // Topic post 41 43 $this->assertSame( 'Topic 1', bbp_get_topic_title( $t ) ); 42 44 $this->assertSame( 'publish', bbp_get_topic_status( $t ) ); 43 45 $this->assertSame( $f, wp_get_post_parent_id( $t ) ); // post parent 46 $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?topic=' . $topic->post_name, $topic->guid ); 44 47 45 48 // Topic meta 46 49 $this->assertSame( $f, bbp_get_topic_forum_id( $t ) ); // _bbp_forum_id