/** * Setup Class Object and Parent Test Suite * * @depends test_RTDBUpdate::test_do_upgrade */ function setUp() { parent::setUp(); $this->rtdbupdate = new RT_DB_Update(false, realpath(dirname(__FILE__) . '/../schema/')); $this->rtdbupdate->do_upgrade(); $this->rtdbmodel = new RT_DB_Model('test_table'); }
/** * initialize variable with class obj reference. */ function setUp() { parent::setUp(); // this line let the database table in db rather than using as ghost // remove_filter( 'query', array( $this, '_create_temporary_tables' ) ); // remove_filter( 'query', array( $this, '_drop_temporary_tables' ) ); $terms_cap = array('manage_terms' => 'manage_custom_terms', 'edit_terms' => 'edit_custom_terms', 'delete_terms' => 'delete_custom_terms', 'assign_terms' => 'assign_custom_terms'); $this->RT_User_Groups = new RT_User_Groups('user-group', array('name' => __('Departments'), 'singular_name' => __('Departmet'), 'menu_name' => __('Departments'), 'search_items' => __('Search Departments'), 'popular_items' => __('Popular Departments'), 'all_items' => __('All User Departments'), 'edit_item' => __('Edit Department'), 'update_item' => __('Update Department'), 'add_new_item' => __('Add New Department'), 'new_item_name' => __('New Department Name'), 'separate_items_with_commas' => __('Separate departments with commas'), 'add_or_remove_items' => __('Add or remove departments'), 'choose_from_most_used' => __('Choose from the most popular departments')), $terms_cap, array()); }
function setUp() { parent::setUp(); $this->rtbiz = rtbiz(); }
function setUp() { parent::setUp(); $this->Rt_Company = new Rt_Company(); }
function setUp() { parent::setUp(); $this->access_control = new Rtbiz_Access_Control(); }
function setUp() { parent::setUp(); $this->dashboard = new Rtbiz_Dashboard(); }
/** * initialize reference with the obj of RT_Attributes */ function setUp() { parent::setUp(); $this->attributes = new RT_Attributes('rt-biz'); }
function setUp() { parent::setUp(); $this->setting = rtbiz_get_redux_settings(); }
function setUp() { parent::setUp(); $this->rtdbupdate = new RT_DB_Update(false, realpath(dirname(__FILE__) . '/../schema/')); }
function setUp() { parent::setUp(); $this->Rt_Contact = new Rt_Contact(); }
function setUp() { parent::setUp(); $this->dept = new RT_Departments(); }