WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/28/2012 06:48:42 PM (10 years ago)
Author:
nacin
Message:

XML-RPC test updates for [WP20632], #WP20566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_wp_getPostType.php

    r587 r700  
    1010        $this->cpt_name = 'post_type_test';
    1111        $this->cpt_args = array(
    12             'description' => 'Test CPT',
    1312            'public' => false,
    1413            'show_ui' => true,
     
    1615            'menu_position' => 7,
    1716            'menu_icon' => 'cpt_icon.png',
    18             'capability_type' => 'post',
    1917            'taxonomies' => array( 'category', 'post_tag' ),
    2018            'hierarchical' => true
     
    5351        $this->assertInternalType( 'string', $result['name'] );
    5452        $this->assertInternalType( 'string', $result['label'] );
    55         $this->assertInternalType( 'string', $result['description'] );
    5653        $this->assertInternalType( 'bool', $result['hierarchical'] );
    5754        $this->assertInternalType( 'bool', $result['public'] );
    5855        $this->assertInternalType( 'bool', $result['_builtin'] );
    59         $this->assertInternalType( 'string', $result['capability_type'] );
    6056        $this->assertInternalType( 'bool', $result['map_meta_cap'] );
    61         $this->assertInternalType( 'bool', $result['publicly_queryable'] );
    62         $this->assertInternalType( 'bool', $result['exclude_from_search'] );
    63         $this->assertInternalType( 'string', $result['_edit_link'] );
    6457        $this->assertInternalType( 'bool', $result['has_archive'] );
    6558        $this->assertInternalType( 'bool', $result['show_ui'] );
    6659        $this->assertInternalType( 'int', $result['menu_position'] );
    6760        $this->assertInternalType( 'string', $result['menu_icon'] );
    68         $this->assertInternalType( 'bool', $result['show_in_nav_menus'] );
    69         $this->assertInternalType( 'bool', $result['show_in_menu'] );
    70         $this->assertInternalType( 'bool', $result['show_in_admin_bar'] );
    7161        $this->assertInternalType( 'array', $result['labels'] );
    7262        $this->assertInternalType( 'array', $result['cap'] );
Note: See TracChangeset for help on using the changeset viewer.