Changeset 38938 for trunk/tests/phpunit/tests/post/wpPostType.php
- Timestamp:
- 10/26/2016 01:23:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpPostType.php
r37890 r38938 14 14 15 15 public function test_add_supports_defaults() { 16 $post_type = rand_str();16 $post_type = 'cpt'; 17 17 $post_type_object = new WP_Post_Type( $post_type ); 18 18 … … 28 28 29 29 public function test_add_supports_custom() { 30 $post_type = rand_str();30 $post_type = 'cpt'; 31 31 $post_type_object = new WP_Post_Type( $post_type, array( 32 32 'supports' => array( … … 57 57 global $wp; 58 58 59 $post_type = rand_str();59 $post_type = 'cpt'; 60 60 $post_type_object = new WP_Post_Type( $post_type, array( 'rewrite' => false, 'query_var' => 'foobar' ) ); 61 61 $post_type_object->add_rewrite_rules(); … … 70 70 global $wp; 71 71 72 $post_type = rand_str();72 $post_type = 'cpt'; 73 73 $post_type_object = new WP_Post_Type( $post_type, array( 74 74 'public' => true, … … 93 93 global $wp_rewrite; 94 94 95 $post_type = rand_str();95 $post_type = 'cpt'; 96 96 $post_type_object = new WP_Post_Type( $post_type, array( 'public' => true, 'rewrite' => true ) ); 97 97 … … 107 107 108 108 public function test_register_meta_boxes() { 109 $post_type = rand_str();109 $post_type = 'cpt'; 110 110 $post_type_object = new WP_Post_Type( $post_type, array( 'register_meta_box_cb' => '__return_false' ) ); 111 111 … … 120 120 121 121 public function test_adds_future_post_hook() { 122 $post_type = rand_str();122 $post_type = 'cpt'; 123 123 $post_type_object = new WP_Post_Type( $post_type ); 124 124 $post_type_object->add_hooks(); … … 134 134 global $wp_post_types; 135 135 136 $post_type = rand_str();136 $post_type = 'cpt'; 137 137 $post_type_object = new WP_Post_Type( $post_type, array( 'taxonomies' => array( 'post_tag' ) ) ); 138 138
Note: See TracChangeset
for help on using the changeset viewer.