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 | static::assertSame('text/xml', $response->headers->get('Content-Type')); |
||
30 | static::assertSame('<xml></xml>', $response->getContent()); |
||
31 | } |
||
32 | } |
||
33 |