<commit_before><?php

namespace AppBundle\Tests\Controller\Admin;

use AppBundle\Tests\Phpunit\DatabaseTestCase;
use AppBundle\Tests\Phpunit\Extension\AuthenticationExtensionTrait;
use AppBundle\Tests\Phpunit\Extension\RepositoryExtensionTrait;

class StatisticsControllerTest extends DatabaseTestCase
{
    use AuthenticationExtensionTrait;
    use RepositoryExtensionTrait;

    public function testShouldConfirmedMeetingsPage()
    {
        $this->authenticateUser(
            $this->getUserRepository()->findOneBy(['email' => '<EMAIL>']),
            ['ROLE_SUPER_ADMIN']
        );

        $client = static::$client;
        $client->request('GET', '/admin/statistics/confirmed-meetings');

        $this->assertEquals(200, $client->getResponse()->getStatusCode());
    }
}<commit_msg>Fixed authentication<commit_after><?php

namespace AppBundle\Tests\Controller\Admin;

use AppBundle\Tests\Phpunit\DatabaseTestCase;
use AppBundle\Tests\Phpunit\Extension\AuthenticationExtensionTrait;
use AppBundle\Tests\Phpunit\Extension\RepositoryExtensionTrait;

class StatisticsControllerTest extends DatabaseTestCase
{
    use AuthenticationExtensionTrait;
    use RepositoryExtensionTrait;

    public function testShouldConfirmedMeetingsPage()
    {
        $this->authenticateUser(
            $this->getUserRepository()->findOneBy(['email' => '<EMAIL>']),
            ['ROLE_ADMIN', 'ROLE_SUPER_ADMIN']
        );

        $client = static::$client;
        $client->request('GET', '/admin/statistics/confirmed-meetings');

        $this->assertEquals(200, $client->getResponse()->getStatusCode());
    }
}
{'fraction_non_alphanumeric': 0.1238332296204107, 'fraction_numerical': 0.00373366521468575, 'mean_word_length': 4.272131147540984, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '3315594', 'n_tokens_mistral': 455, 'n_tokens_neox': 441, 'n_words': 62}