public function __construct()
 {
     parent::__construct();
     $this->final_user = ['id' => 15, 'email' => '*****@*****.**', 'password_hash' => password_hash('father', PASSWORD_BCRYPT), 'active' => 1];
     $this->user_model = m::mock('User_model');
     $session = m::mock('CI_Session');
     $this->ci = get_instance();
     $this->ci->load->model('auth/login_model');
     $this->ci->session = $session;
     $this->login_mock = m::mock('Login_model');
     $this->auth = new Authenticate($this->ci);
     $this->auth->useModel($this->user_model, true);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->queue = \Mockery::mock('\\Myth\\Mail\\Queue');
 }
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->final_user = ['id' => 15, 'email' => '*****@*****.**', 'password_hash' => password_hash('father', PASSWORD_BCRYPT), 'active' => 1];
 }