mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-11 08:08:27 +08:00
21 lines
437 B
PHP
Executable File
21 lines
437 B
PHP
Executable File
<?php
|
|
namespace Repository;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class GetProtectedBranchRuleTest extends TestCase {
|
|
public function setUp()
|
|
{
|
|
global $CI;
|
|
$CI->load->model('Repository_model', 'repositoryModel');
|
|
}
|
|
|
|
public function testGetProtectedBranchRule_Empty()
|
|
{
|
|
global $CI;
|
|
|
|
$rule = $CI->repositoryModel->listProtectedBranchRules('', '');
|
|
$this->assertFalse($rule);
|
|
}
|
|
}
|