| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testExecute(): void |
||
| 19 | { |
||
| 20 | $generator = $this->prophesize(SitemapGeneratorInterface::class); |
||
| 21 | $generator->toXML() |
||
| 22 | ->willReturn('<xml></xml>') |
||
| 23 | ; |
||
| 24 | |||
| 25 | $action = new SitemapXMLAction($generator->reveal()); |
||
| 26 | |||
| 27 | $response = $action(); |
||
| 28 | |||
| 29 | $this->assertSame('text/xml', $response->headers->get('Content-Type')); |
||
| 30 | $this->assertSame('<xml></xml>', $response->getContent()); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |