Changeset 1020 in tests for trunk/tests/post/types.php
- Timestamp:
- 09/13/2012 04:56:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/types.php
r909 r1020 16 16 $this->assertFalse( is_post_type_hierarchical( 'foo' ) ); 17 17 $this->assertEquals( array(), get_object_taxonomies( 'foo' ) ); 18 19 _unregister_post_type( 'foo' ); 18 20 } 19 21 … … 36 38 $this->assertFalse( is_object_in_taxonomy( 'bar', 'post_tag' ) ); 37 39 $this->assertFalse( is_object_in_taxonomy( 'bar', 'post_tag' ) ); 40 41 _unregister_post_type( 'bar' ); 38 42 } 39 43 … … 50 54 $this->assertFalse( post_type_supports( 'notaposttype', 'notafeature' ) ); 51 55 } 56 57 /** 58 * @ticket 21586 59 */ 60 function test_post_type_with_no_support() { 61 register_post_type( 'foo', array( 'supports' => array() ) ); 62 $this->assertTrue( post_type_supports( 'foo', 'editor' ) ); 63 $this->assertTrue( post_type_supports( 'foo', 'title' ) ); 64 _unregister_post_type( 'foo' ); 65 66 register_post_type( 'foo', array( 'supports' => false ) ); 67 $this->assertFalse( post_type_supports( 'foo', 'editor' ) ); 68 $this->assertFalse( post_type_supports( 'foo', 'title' ) ); 69 _unregister_post_type( 'foo' ); 70 } 52 71 }
Note: See TracChangeset
for help on using the changeset viewer.