<commit_before><?php

namespace Tests\Aml\Bundle\EvenementsBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;

class AgendaControllerTest extends WebTestCase
{
    public function testArchivesWithoutSeason()
    {
        $client = static::createClient();

        $url = $client->getContainer()->get('router')->generate('agenda_archives');
        $crawler = $client->request('GET', $url);

        // Check status code
        $this->assertSame(Response::HTTP_NOT_FOUND, $client->getResponse()->getStatusCode());
    }

//    public function testArchives()
//    {
//        $client = static::createClient();
//
//        $url = $client->getContainer()->get('router')->generate('agenda_archives');
//        $crawler = $client->request('GET', $url);
//
//        // Check status code
//        $this->assertEquals(200, $client->getResponse()->getStatusCode());
//<commit_msg>EvenementBundle | fix functionnal test<commit_after><?php

namespace Tests\Aml\Bundle\EvenementsBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;

class AgendaControllerTest extends WebTestCase
{

    public function testArchivesWithoutSeason()
    {
        $client = static::createClient();

        $url = $client->getContainer()->get('router')->generate('agenda_archives', ['season_id' => 0]);
        $crawler = $client->request('GET', $url);

        // Check status code
        $this->assertSame(Response::HTTP_NOT_FOUND, $client->getResponse()->getStatusCode());
    }

//    public function testArchives()
//    {
//        $client = static::createClient();
//
//        $url = $client->getContainer()->get('router')->generate('agenda_archives');
//        $crawler = $client->request('GET', $url);
//
//        // Check status code
//        $this->assertEquals(200, $client->getResponse()->getStatusCode());
//
{'fraction_non_alphanumeric': 0.17234262125902994, 'fraction_numerical': 0.003611971104231166, 'mean_word_length': 3.51981351981352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1374088', 'n_tokens_mistral': 552, 'n_tokens_neox': 545, 'n_words': 87}