for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\KI\CoreBundle\Controller;
use Tests\KI\CoreBundle\WebTestCase;
// Tests généraux à toutes les classes
class BaseControllerTest extends WebTestCase
{
public function testPagination()
$this->client->request('GET', '/clubs?page=1&limit=10&sort=-fullName');
$response = $this->client->getResponse();
$this->assertJsonResponse($response, 200);
$this->assertTrue($response->headers->has('Links'), $response->headers);
$this->assertTrue($response->headers->has('Total-count'), $response->headers);
}
public function testFilter()
$this->client->request('GET', '/courses/mecanique-des-structures/exercices?department=1A&sort=semester,-startDate');