- Homepage: hero, how it works (buyer/organizer), features, CTA
- Tarifs: 3 plans (Gratuit, Basique 10€, Sur-mesure), JSON-LD Product
- Legal pages: mentions legales, CGU (tabs buyer/organizer), CGV, RGPD, cookies, hosting
- Navbar: neubrutalism style, logo liip, mobile menu, SEO attributes
- Footer: contact, description, legal links, tarifs
- Sitemap: add /tarifs and /sitemap-orgas-{page}.xml
- Liip Imagine: remove S3, webp format on all filters
- Tests: full coverage for all controllers, services, repositories
- Fix CSP: replace inline onclick with data-tab JS
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
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::assertStringContainsString('text/xml', $client->getResponse()->headers->get('Content-Type'));
|
|
}
|
|
|
|
public function testSitemapMainReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap-main.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertStringContainsString('text/xml', $client->getResponse()->headers->get('Content-Type'));
|
|
self::assertStringContainsString('/tarifs', $client->getResponse()->getContent());
|
|
}
|
|
|
|
public function testSitemapEventsReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap-events-1.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertStringContainsString('text/xml', $client->getResponse()->headers->get('Content-Type'));
|
|
}
|
|
|
|
public function testSitemapOrgasReturnsXml(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/sitemap-orgas-1.xml');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
self::assertStringContainsString('text/xml', $client->getResponse()->headers->get('Content-Type'));
|
|
}
|
|
}
|