/**
  * SetUp initial settings
  */
 function setUp()
 {
     parent::setUp();
     //init user roles
     global $wpdr;
     $wpdr->add_caps();
     _flush_roles();
     $this->user_ids = array();
     wp_set_current_user(0);
     //flush cache for good measure
     wp_cache_flush();
 }
 /**
  * SetUp initial settings
  */
 function setUp()
 {
     parent::setUp();
     //init permalink structure
     global $wp_rewrite;
     $wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/');
     $wp_rewrite->flush_rules();
     //custom wp_die_handler to verify that we died
     add_filter('wp_die_handler', array(&$this, 'get_die_handler'), 9999);
     global $is_wp_die;
     $is_wp_die = false;
     //init user roles
     global $wpdr;
     $wpdr->add_caps();
     _flush_roles();
     //flush cache for good measure
     wp_cache_flush();
 }