Added "Github Enterprise" build type. Issue #163.
This commit is contained in:
parent
1acd3dc9b9
commit
c61602189a
9 changed files with 90 additions and 159 deletions
|
|
@ -39,7 +39,7 @@ class ProjectTest extends \PHPUnit\Framework\TestCase
|
|||
public function testExecute_TestGithubDefaultBranch()
|
||||
{
|
||||
$project = new Project();
|
||||
$project->setType('github');
|
||||
$project->setType(Project::TYPE_GITHUB);
|
||||
|
||||
self::assertEquals('master', $project->getBranch());
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ class ProjectTest extends \PHPUnit\Framework\TestCase
|
|||
public function testExecute_TestGitlabDefaultBranch()
|
||||
{
|
||||
$project = new Project();
|
||||
$project->setType('gitlab');
|
||||
$project->setType(Project::TYPE_GITLAB);
|
||||
|
||||
self::assertEquals('master', $project->getBranch());
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ class ProjectTest extends \PHPUnit\Framework\TestCase
|
|||
public function testExecute_TestBitbucketDefaultBranch()
|
||||
{
|
||||
$project = new Project();
|
||||
$project->setType('bitbucket');
|
||||
$project->setType(Project::TYPE_BITBUCKET);
|
||||
|
||||
self::assertEquals('master', $project->getBranch());
|
||||
}
|
||||
|
|
@ -63,7 +63,7 @@ class ProjectTest extends \PHPUnit\Framework\TestCase
|
|||
public function testExecute_TestMercurialDefaultBranch()
|
||||
{
|
||||
$project = new Project();
|
||||
$project->setType('hg');
|
||||
$project->setType(Project::TYPE_HG);
|
||||
|
||||
self::assertEquals('default', $project->getBranch());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue