- 21 test files covering controllers, services, entities, enums, messages - CI: add test job with Xdebug coverage (clover + text) - SonarQube: configure coverage report path and test sources Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
975 B
PHP
36 lines
975 B
PHP
<?php
|
|
|
|
namespace App\Tests\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class SitemapControllerTest extends WebTestCase
|
|
{
|
|
public function testSitemapIndexReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertResponseHeaderSame('Content-Type', 'text/xml');
|
|
}
|
|
|
|
public function testSitemapMainReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap-main.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertResponseHeaderSame('Content-Type', 'text/xml');
|
|
}
|
|
|
|
public function testSitemapEventsReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap-events-1.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertResponseHeaderSame('Content-Type', 'text/xml');
|
|
}
|
|
}
|