- Timestamp:
- 08/12/2016 06:23:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/replies/template/post_type.php
r5890 r6071 25 25 26 26 $robj = get_post_type_object( 'reply' ); 27 $this->assertInstanceOf( 'stdClass', $robj ); 27 28 // WordPress 4.6 introduced `WP_Post_Type` class 29 if ( bbp_get_major_wp_version() < 4.6 ) { 30 $this->assertInstanceOf( 'stdClass', $robj ); 31 } else { 32 $this->assertInstanceOf( 'WP_Post_Type', $robj ); 33 } 34 28 35 $this->assertEquals( 'reply', $robj->name ); 29 36
Note: See TracChangeset
for help on using the changeset viewer.