WP_XMLRPC_UnitTestCase::setUp PHP Method

setUp() public method

public setUp ( )
    function setUp()
    {
        parent::setUp();
        add_filter('pre_option_enable_xmlrpc', '__return_true');
        $this->myxmlrpcserver = new wp_xmlrpc_server();
    }

Usage Example

 function setUp()
 {
     parent::setUp();
     $this->cpt_name = 'post_type_test';
     $this->cpt_args = array('public' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 7, 'menu_icon' => 'cpt_icon.png', 'taxonomies' => array('category', 'post_tag'), 'hierarchical' => true);
     register_post_type($this->cpt_name, $this->cpt_args);
 }
All Usage Examples Of WP_XMLRPC_UnitTestCase::setUp