<commit_before><?php

namespace AppBundle\Tests\Controller;

use AppBundle\Tests\AbstractBaseTest;

/**
 * Class BackendControllerTest
 *
 * @category Test
 * @package  AppBundle\Tests\Controller
 * @author   <NAME> <<EMAIL>>
 */
class BackendControllerTest extends AbstractBaseTest
{
    /**
     * Test admin login request is successful
     */
    public function testAdminLoginPageIsSuccessful()
    {
        $client = $this->createClient();           // anonymous user
        $client->request('GET', '/admin/login');

        $this->assertStatusCode(200, $client);
    }

    /**
     * Test HTTP request is successful
     *
     * @dataProvider provideSuccessfulUrls
     * @param string $url
     */
    public function testAdminPagesAreSuccessful($url)
    {
        $client = $this->makeClient(true);         // authenticated user
        $client->request('GET', $url);

        $this->assertStatusCode(200, $client);
    }

    /**
     * Successful Urls provider
     *
     * @return array
     */
    public function provideSuccessfulUrls()
    {
        return array(
            array('/admin/dashboard'),
            array('/admin/customers/customer/list'),
            array('/admin/customers/customer/create'),
            array('/admin/customers/customer/1/edit'),
            array('/admin/customers/customer/1/map'),
            array('/admin/customers/state/list'),
            array('/admin/customers/state/create'),
            array('/admin/customers/state/1/delete'),
            array('/admin/customers/state/1/edit'),
            array('/admin/windfarms/windfarm/list'),
            array('/admin/windfarms/windfarm/create'),
            array('/admin/windfarms/windfarm/1/edit'),
            array('/admin/windfarms/windfarm/1/map'),
            array('/admin/windfarms/windmill/list'),
            array('/admin/windfarms/windmill/create'),
            array('/admin/windfarms/windmill/1/edit'),<commit_msg>add excel url to tests<commit_after><?php

namespace AppBundle\Tests\Controller;

use AppBundle\Tests\AbstractBaseTest;

/**
 * Class BackendControllerTest
 *
 * @category Test
 * @package  AppBundle\Tests\Controller
 * @author   <NAME> <<EMAIL>>
 */
class BackendControllerTest extends AbstractBaseTest
{
    /**
     * Test admin login request is successful
     */
    public function testAdminLoginPageIsSuccessful()
    {
        $client = $this->createClient();           // anonymous user
        $client->request('GET', '/admin/login');

        $this->assertStatusCode(200, $client);
    }

    /**
     * Test HTTP request is successful
     *
     * @dataProvider provideSuccessfulUrls
     * @param string $url
     */
    public function testAdminPagesAreSuccessful($url)
    {
        $client = $this->makeClient(true);         // authenticated user
        $client->request('GET', $url);

        $this->assertStatusCode(200, $client);
    }

    /**
     * Successful Urls provider
     *
     * @return array
     */
    public function provideSuccessfulUrls()
    {
        return array(
            array('/admin/dashboard'),
            array('/admin/customers/customer/list'),
            array('/admin/customers/customer/create'),
            array('/admin/customers/customer/1/edit'),
            array('/admin/customers/customer/1/map'),
            array('/admin/customers/state/list'),
            array('/admin/customers/state/create'),
            array('/admin/customers/state/1/delete'),
            array('/admin/customers/state/1/edit'),
            array('/admin/windfarms/windfarm/list'),
            array('/admin/windfarms/windfarm/create'),
            array('/admin/windfarms/windfarm/1/edit'),
            array('/admin/windfarms/windfarm/1/map'),
            array('/admin/windfarms/windfarm/1/excel'),
            array('/admin/windfarms/windmill/list'),
            array('/admin/windfarms/windmill/create'),
            array('/admin/windfarms/windmill/1/edit'),
{'fraction_non_alphanumeric': 0.1449936628643853, 'fraction_numerical': 0.006844106463878327, 'mean_word_length': 2.291075896580484, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5625531', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1099, 'n_words': 168}