Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/13/2015 04:57:46 AM (10 years ago)
Author:
netweb
Message:

Tests: Add post type object and hierarchical test assertions for forum, topic and reply post types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/replies/template/post_type.php

    r5722 r5746  
    1717        $r = $this->factory->reply->create();
    1818
     19        $robj = get_post_type_object( 'reply' );
     20        $this->assertInstanceOf( 'stdClass', $robj );
     21        $this->assertEquals( 'reply', $robj->name );
     22
     23        // Test some defaults
     24        $this->assertFalse( is_post_type_hierarchical( 'topic' ) );
    1925        $reply_type = bbp_reply_post_type( $r );
    2026        $this->expectOutputString( 'reply', $reply_type );
Note: See TracChangeset for help on using the changeset viewer.