Changeset 36402 for trunk/tests/phpunit/tests/post/isPostTypeViewable.php
- Timestamp:
- 01/26/2016 02:36:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/isPostTypeViewable.php
r36401 r36402 72 72 $this->assertTrue( is_post_type_viewable( $page ) ); 73 73 } 74 75 /** 76 * @ticket 35609 77 */ 78 public function test_should_accept_post_type_name() { 79 register_post_type( 'wptests_pt', array( 80 'publicly_queryable' => true, 81 '_builtin' => false, 82 'public' => false, 83 ) ); 84 85 $this->assertTrue( is_post_type_viewable( 'wptests_pt' ) ); 86 } 87 88 /** 89 * @ticket 35609 90 */ 91 public function test_should_return_false_for_bad_post_type_name() { 92 $this->assertFalse( is_post_type_viewable( 'foo' ) ); 93 } 74 94 }
Note: See TracChangeset
for help on using the changeset viewer.