load->model('Repository_model', 'repositoryModel'); } public function test_main() { global $CI; $uKey = TESTING_USER_KEY; $rKey = TESTING_REPOSITORY_KEY; $result = $CI->repositoryModel->getBranchCount($rKey, $uKey); $this->assertGreaterThanOrEqual(0, $result); } public function test_main_empty() { global $CI; $result = $CI->repositoryModel->getBranchCount('', ''); $this->assertFalse($result); } }