| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testAllShouldReturnArray() |
||
| 19 | { |
||
| 20 | $eventService = $this->getMockBuilder('Article\Service\EventService') |
||
| 21 | ->setMethods(['fetchLatest']) |
||
| 22 | ->disableOriginalConstructor() |
||
| 23 | ->getMockForAbstractClass(); |
||
| 24 | $eventService->expects(static::once()) |
||
| 25 | ->method('fetchLatest') |
||
| 26 | ->willReturn([]); |
||
| 27 | $eventHelper = new \Article\View\Helper\EventHelper($eventService); |
||
| 28 | static::assertSame([], $eventHelper->getLatest()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |