This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #40: 0.3.0 release broke Jenkins job creation
- Loading branch information
Chris Pliakas
committed
Sep 30, 2014
1 parent
d84ff72
commit 0d8f604
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Cpliakas\PhpProjectStarter\Test; | ||
|
||
use Cpliakas\PhpProjectStarter\JenkinsJob; | ||
use Cpliakas\PhpProjectStarter\ProjectName; | ||
use Cpliakas\PhpProjectStarter\Repository; | ||
use GitWrapper\GitWrapper; | ||
|
||
class JenkinsJobTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testGetConfigTemplate() | ||
{ | ||
$projectName = new ProjectName('cpliakas/test'); | ||
$repository = new Repository($projectName, new GitWrapper()); | ||
$jenkinsJob = new JenkinsJob($projectName, $repository, 'http://example.com'); | ||
|
||
$this->assertNotEmpty($jenkinsJob->getConfigTemplate()); | ||
} | ||
} |