mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-11 08:08:27 +08:00
24 lines
524 B
PHP
Executable File
24 lines
524 B
PHP
Executable File
<?php
|
|
namespace Repository;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class isMergedTest extends TestCase {
|
|
|
|
public function setUp()
|
|
{
|
|
global $CI;
|
|
$CI->load->model('Repository_model', 'repositoryModel');
|
|
}
|
|
|
|
public function test_main()
|
|
{
|
|
global $CI;
|
|
$uKey = TESTING_USER_KEY;
|
|
$rKey = TESTING_REPOSITORY_KEY;
|
|
$branch = TESTING_SOURCE_BRANCH_NAME;
|
|
$result = $CI->repositoryModel->isMerged($rKey, $uKey, $branch);
|
|
|
|
$this->assertIsBool($result);
|
|
}
|
|
} |