mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-23 16:32:55 +03:00
38 lines
935 B
PHP
38 lines
935 B
PHP
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
||
|
class Test extends CI_Controller {
|
||
|
/**
|
||
|
* Class Constructor
|
||
|
*/
|
||
|
public function __construct() {
|
||
|
parent::__construct();
|
||
|
$this->load->driver('Unit_tests');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Run all available unit tests.
|
||
|
*/
|
||
|
public function index() {
|
||
|
$this->load->view('general/test');
|
||
|
$this->unit_tests->run_all_tests();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Test only the app models.
|
||
|
*/
|
||
|
public function models() {
|
||
|
$this->load->view('general/test');
|
||
|
$this->unit_tests->run_model_tests();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Test only the app libraries.
|
||
|
*/
|
||
|
public function libraries() {
|
||
|
$this->load->view('general/test');
|
||
|
$this->unit_tests->run_library_tests();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* End of file test.php */
|
||
|
/* Location: ./application/controllers/test.php */
|