Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
r40417 r42343 13 13 $this->cpt_name = 'post_type_test'; 14 14 $this->cpt_args = array( 15 'public' => false,16 'show_ui' => true,17 'show_in_menu' => true,15 'public' => false, 16 'show_ui' => true, 17 'show_in_menu' => true, 18 18 'menu_position' => 7, 19 'menu_icon' => 'cpt_icon.png',20 'taxonomies' => array( 'category', 'post_tag' ),21 'hierarchical' => true19 'menu_icon' => 'cpt_icon.png', 20 'taxonomies' => array( 'category', 'post_tag' ), 21 'hierarchical' => true, 22 22 ); 23 23 register_post_type( $this->cpt_name, $this->cpt_args ); … … 127 127 $this->assertEquals( $this->cpt_name, $result['name'] ); 128 128 foreach ( $this->cpt_args as $key => $value ) { 129 $this->assertEquals( $value, $result[ $key] );129 $this->assertEquals( $value, $result[ $key ] ); 130 130 } 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.