- 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>
25 lines
552 B
PHP
25 lines
552 B
PHP
<?php
|
|
|
|
namespace App\Tests\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class SearchControllerTest extends WebTestCase
|
|
{
|
|
public function testSearchPageReturnsSuccess(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/search');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
|
|
public function testSearchWithQueryParam(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/search?q=cosplay');
|
|
|
|
self::assertResponseIsSuccessful();
|
|
}
|
|
}
|