/** * Setup PHPUnit & load any required dependencies * @covers System_Message_Model::__construct */ public function setUp() { parent::tearDown(); parent::setUp(); $this->CI->session->unset_userdata('system_messages'); $this->CI->load->model('system_message_model', 'system_message_model_constructor_hack'); }
public function setUp() { parent::setUp(); $this->CI = set_controller('ums'); $this->dbfixt('razor_channel_product'); $this->dbfixt('razor_event_defination'); }
public function setUp() { parent::setUp(); // 回复CI $this->CI =& get_instance(); $this->CI->load->model('ncyh/api_ncyh_model'); $this->_api = $this->CI->api_ncyh_model; }
public function setUp() { parent::setUp(); // load helper $this->CI->load->helper('string'); $this->CI->load->library('authcode'); $this->_lib_authcode = $this->CI->authcode; }
/** * Setup PHPUnit & load any required dependencies * @covers Ajax::__construct */ public function setUp() { // Set the tested controller $this->CI = set_controller('ajax'); parent::tearDown(); parent::setUp(); $this->CI->load->model('narrative_model'); }
public function setUp() { parent::setUp(); // 回复CI $this->CI =& get_instance(); $this->CI->load->model('users/user'); $this->_user = $this->CI->user; }
/** * Setup PHPUnit & load any required dependencies * @covers Narrative_Model::__construct * @covers Upload_Model::__construct */ public function setUp() { parent::tearDown(); parent::setUp(); $this->sampleNarrativeXml = '<?xml version="1.0" encoding="UTF-8"?><narrative><narrativeName>2</narrativeName><language>English</language><submitDate>2013-07-11</submitDate><time>11-22-31</time></narrative>'; $this->sampleNarrativeXmlFR = '<?xml version="1.0" encoding="UTF-8"?><narrative><narrativeName>2</narrativeName><language>French</language><submitDate>2013-07-11</submitDate><time>11-22-31</time></narrative>'; $this->CI->load->model('narrative_model'); $this->CI->load->model('upload_model'); }
public function setUp() { parent::tearDown(); parent::setUp(); $this->CI->load->model('User_model', 'um'); $this->um = $this->CI->um; $this->dbfixt('user'); $this->dbfixt('media'); }
public function setUp() { parent::setUp(); // load helper $this->CI->load->helper('string'); $this->CI->load->library('Field_validate'); $this->_lib_field_validate = $this->CI->field_validate; // var_dump($this->_lib_field_validate); // init for library $this->_lib_field_validate->alert_message = null; }
public function setUp() { parent::setUp(); if (!empty($this->CI->session)) { $this->CI->session->sess_destroy(); } $this->CI->load->database('default_test'); $this->CI->db->query('SET FOREIGN_KEY_CHECKS=0'); $this->dbfixt('user_settings', 'users', 'numbers', 'groups_users'); $this->CI->db->query('SET FOREIGN_KEY_CHECKS=1'); }
public function setUp() { parent::tearDown(); parent::setUp(); /* * this is an example of how you would load a product model, * load fixture data into the test database (assuming you have the fixture yaml files filled with data for your tables), * and use the fixture instance variable $this->CI->load->model('Product_model', 'pm'); $this->pm=$this->CI->pm; $this->dbfixt('users', 'products') the fixtures are now available in the database and so: $this->users_fixt; $this->products_fixt; */ }
/** * Setup PHPUnit & load any required dependencies * @covers Comment_Model::__construct */ public function setUp() { parent::tearDown(); parent::setUp(); $this->CI->load->model('comment_model'); }
public function setUp() { parent::setUp(); $this->CI->load->library('op_credit'); $this->_lib_op_credit = $this->CI->op_credit; }
public function setUp() { parent::setUp(); $this->CI->load->library('op_jinbi'); $this->_lib_op_jinbi = $this->CI->op_jinbi; }
public function setUp() { parent::setUp(); ob_start(); }
public function tearDown() { parent::setUp(); }
/** * Setup PHPUnit & load any required dependencies */ public function setUp() { parent::tearDown(); parent::setUp(); $this->CI->load->helper('narrative_editing'); }
public function setUp() { parent::setUp(); $_COOKIE['uid'] = '2'; $_COOKIE['keep_code'] = '123123'; }
public function setUp() { parent::setUp(); }
/** * Setup PHPUnit & load any required dependencies * @covers Admin_Model::__construct */ public function setUp() { parent::tearDown(); parent::setUp(); $this->CI->load->model('admin_model', 'admin_model_constructor_hack'); }