- 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>
25 lines
595 B
PHP
25 lines
595 B
PHP
<?php
|
|
|
|
namespace App\Tests\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class SonarBadgeControllerTest extends WebTestCase
|
|
{
|
|
public function testBadgeWithValidMetric(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/badge/sonar/alert_status.svg');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testBadgeWithInvalidMetric(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/badge/sonar/invalid_metric.svg');
|
|
|
|
self::assertResponseStatusCodeSame(404);
|
|
}
|
|
}
|