Files
codefever/tests/model/repository/deleteBranchTest.php

34 lines
706 B
PHP
Executable File

<?php
namespace Repository;
use PHPUnit\Framework\TestCase;
class deleteBranchTest extends TestCase {
public function setUp()
{
global $CI;
$CI->load->model('Repository_model', 'repositoryModel');
}
public function test_main()
{
global $CI;
$rKey = TESTING_REPOSITORY_KEY;
$uKey = TESTING_USER_KEY;
$branch = TESTING_NEW_BRANCH_NAME;
$result = $CI->repositoryModel->deleteBranch($rKey, $uKey, $branch);
$this->assertIsBool($result);
}
public function test_main_empty()
{
global $CI;
$result = $CI->repositoryModel->deleteBranch('', '', '');
$this->assertFalse($result);
}
}