Changeset 5925 for trunk/tests/phpunit/testcases/topics/functions/topic.php
- Timestamp:
- 08/24/2015 09:55:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/topics/functions/topic.php
r5915 r5925 19 19 20 20 $now = time(); 21 $post_date = date( 'Y-m-d H:i:s', $now - 60 *60*100 );21 $post_date = date( 'Y-m-d H:i:s', $now - 60 * 60 * 100 ); 22 22 23 23 $t = $this->factory->topic->create( array( … … 38 38 ) ); 39 39 40 // Topic post 40 // Get the topic. 41 $topic = bbp_get_topic( $t ); 42 43 // Topic post. 41 44 $this->assertSame( 'Topic 1', bbp_get_topic_title( $t ) ); 42 45 $this->assertSame( 'publish', bbp_get_topic_status( $t ) ); 43 $this->assertSame( $f, wp_get_post_parent_id( $t ) ); // post parent 44 45 // Topic meta 46 $this->assertSame( $f, bbp_get_topic_forum_id( $t ) ); // _bbp_forum_id 46 $this->assertSame( $f, wp_get_post_parent_id( $t ) ); 47 $this->assertEquals( 'http://' . WP_TESTS_DOMAIN . '/?topic=' . $topic->post_name, $topic->guid ); 48 49 // Topic meta. 50 $this->assertSame( $f, bbp_get_topic_forum_id( $t ) ); 47 51 $this->assertSame( 1, bbp_get_topic_reply_count( $t, true ) ); 48 52 $this->assertSame( 0, bbp_get_topic_reply_count_hidden( $t, true ) );
Note: See TracChangeset
for help on using the changeset viewer.