Add TicketListController test

A new file, TicketListControllerTest.php, has been added to the test suite. This file includes tests to ensure that the TicketList controller is working as expected, including checking the successful response of the 'GET' request.
This commit is contained in:
2024-06-03 13:22:46 +02:00
parent 0d74f0980f
commit 348740f073

View File

@@ -0,0 +1,20 @@
<?php
namespace Controller;
use Chill\MainBundle\Test\PrepareClientTrait;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class TicketListControllerTest extends WebTestCase
{
use PrepareClientTrait;
public function testList(): void
{
$client = $this->getClientAuthenticated();
$client->request('GET', '/fr/ticket/ticket/list');
self::assertResponseIsSuccessful();
}
}