- Add /conformite page: PSD2/3DS/Stripe, SonarQube badges, CI/CD, security - Create SonarBadgeController proxy to serve SonarQube badges without exposing token - Store SonarQube badge token in ansible/vault.yml instead of env files - Add Meilisearch coverage tests: search with results, search error, sync, delete - Fix MeilisearchService delete catch block with comment - Fix ESLint: use globalThis.confirm instead of window.confirm - Fix accessibility: add for/id attributes to buyer creation form labels - Add conformite link to site footer - Add SonarBadgeControllerTest and LegalControllerTest for /conformite Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
1.4 KiB
PHP
65 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Tests\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class LegalControllerTest extends WebTestCase
|
|
{
|
|
public function testMentionsLegales(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/mentions-legales');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testCgu(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/cgu');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testCgv(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/cgv');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testHosting(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/hebergement');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testCookies(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/cookies');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testRgpd(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/rgpd');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testConformite(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/conformite');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
}
|