| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 31 | public function testForWebShouldReturnArray() | ||
| 32 |     { | ||
| 33 |         $postService = $this->getMockBuilder('Article\Service\PostService') | ||
| 34 | ->setMethods(['getLatestWeb']) | ||
| 35 | ->disableOriginalConstructor() | ||
| 36 | ->getMockForAbstractClass(); | ||
| 37 | $postService->expects(static::once()) | ||
| 38 |             ->method('getLatestWeb') | ||
| 39 | ->willReturn([]); | ||
| 40 | $postHelper = new \Article\View\Helper\PostHelper($postService); | ||
| 41 | static::assertSame([], $postHelper->forWeb()); | ||
| 42 | } | ||
| 43 | } | ||
| 44 |