Changeset 43571 for trunk/tests/phpunit/tests/post/wpPostType.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpPostType.php
r42343 r43571 27 27 'title' => true, 28 28 'editor' => true, 29 ), $post_type_supports 29 ), 30 $post_type_supports 30 31 ); 31 32 $this->assertEqualSets( array(), $post_type_supports_after ); … … 35 36 $post_type = 'cpt'; 36 37 $post_type_object = new WP_Post_Type( 37 $post_type, array( 38 $post_type, 39 array( 38 40 'supports' => array( 39 41 'editor', … … 55 57 'comments' => true, 56 58 'revisions' => true, 57 ), $post_type_supports 59 ), 60 $post_type_supports 58 61 ); 59 62 $this->assertEqualSets( array(), $post_type_supports_after ); … … 68 71 $post_type = 'cpt'; 69 72 $post_type_object = new WP_Post_Type( 70 $post_type, array( 73 $post_type, 74 array( 71 75 'rewrite' => false, 72 76 'query_var' => 'foobar', … … 86 90 $post_type = 'cpt'; 87 91 $post_type_object = new WP_Post_Type( 88 $post_type, array( 92 $post_type, 93 array( 89 94 'public' => true, 90 95 'rewrite' => false, … … 111 116 $post_type = 'cpt'; 112 117 $post_type_object = new WP_Post_Type( 113 $post_type, array( 118 $post_type, 119 array( 114 120 'public' => true, 115 121 'rewrite' => true,
Note: See TracChangeset
for help on using the changeset viewer.