| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testCreateFromCardHistory() |
||
| 14 | { |
||
| 15 | $from = 'fromColumn'; |
||
| 16 | $to = 'toColumn'; |
||
| 17 | |||
| 18 | $cardHistory = $this->prophesize(HistoryCard::class); |
||
| 19 | $cardHistory->getFrom()->willReturn($from); |
||
| 20 | $cardHistory->getTo()->willReturn($to); |
||
| 21 | |||
| 22 | $cycleTimeColumn = CycleTime::createFromCardHistory($cardHistory->reveal()); |
||
| 23 | |||
| 24 | $this->assertEquals($from, $cycleTimeColumn->getFrom()); |
||
| 25 | $this->assertEquals($to, $cycleTimeColumn->getTo()); |
||
| 26 | $this->assertNull($cycleTimeColumn->getDays()); |
||
| 27 | } |
||
| 28 | } |