Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testFindAndNotifyAction() |
||
17 | { |
||
18 | $service = $this->getMockBuilder('\JhFlexiTime\Service\MissingBookingReminderService') |
||
19 | ->disableOriginalConstructor() |
||
20 | ->getMock(); |
||
21 | |||
22 | $console = $this->getMock('Zend\Console\Adapter\AdapterInterface'); |
||
23 | |||
24 | $controller = new UserReminderCliController($service, $console); |
||
25 | |||
26 | $console |
||
27 | ->expects($this->once()) |
||
28 | ->method('writeLine') |
||
29 | ->with('Finished! ', 3); |
||
30 | |||
31 | $service |
||
32 | ->expects($this->once()) |
||
33 | ->method('findAndNotifyMissingBookings'); |
||
34 | |||
35 | $controller->findAndNotifyMissingBookingsAction(); |
||
36 | } |
||
37 | } |
||
38 |