|
@@ 22-27 (lines=6) @@
|
| 19 |
|
return $env; |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
public function testStartedGetCommits() { |
| 23 |
|
$filter = DNStartedCommits::create(); |
| 24 |
|
$filter->env = $this->getMockEnvironment(); |
| 25 |
|
$commits = $filter->getCommits(); |
| 26 |
|
$this->assertEquals(array('5f0c018f97225b2851f84gf87f64865z42h0527t'), $commits->column('SHA')); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function testQueuedGetCommits() { |
| 30 |
|
$filter = DNQueuedCommits::create(); |
|
@@ 29-34 (lines=6) @@
|
| 26 |
|
$this->assertEquals(array('5f0c018f97225b2851f84gf87f64865z42h0527t'), $commits->column('SHA')); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function testQueuedGetCommits() { |
| 30 |
|
$filter = DNQueuedCommits::create(); |
| 31 |
|
$filter->env = $this->getMockEnvironment(); |
| 32 |
|
$commits = $filter->getCommits(); |
| 33 |
|
$this->assertEquals(array('7f0c016f97275b2451f24cf87f14865e42a0927c'), $commits->column('SHA')); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function testFailedGetCommits() { |
| 37 |
|
$filter = DNFailedCommits::create(); |
|
@@ 36-41 (lines=6) @@
|
| 33 |
|
$this->assertEquals(array('7f0c016f97275b2451f24cf87f14865e42a0927c'), $commits->column('SHA')); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function testFailedGetCommits() { |
| 37 |
|
$filter = DNFailedCommits::create(); |
| 38 |
|
$filter->env = $this->getMockEnvironment(); |
| 39 |
|
$commits = $filter->getCommits(); |
| 40 |
|
$this->assertEquals(array('9f0a012e97715b1871n41gk30f34268u12a0029q'), $commits->column('SHA')); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function testFinishedGetCommits() { |
| 44 |
|
$filter = DNFinishedCommits::create(); |
|
@@ 43-48 (lines=6) @@
|
| 40 |
|
$this->assertEquals(array('9f0a012e97715b1871n41gk30f34268u12a0029q'), $commits->column('SHA')); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function testFinishedGetCommits() { |
| 44 |
|
$filter = DNFinishedCommits::create(); |
| 45 |
|
$filter->env = $this->getMockEnvironment(); |
| 46 |
|
$commits = $filter->getCommits(); |
| 47 |
|
$this->assertEquals(array('8f0q012f97725b1851n84gk87f34868z42l0524p'), $commits->column('SHA')); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|