<commit_before><?php

namespace Oro\Bundle\EntityConfigBundle\Tests\Functional\Controller;

use Doctrine\ORM\EntityManager;
use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel;
use Oro\Bundle\EntityConfigBundle\Entity\FieldConfigModel;
use Oro\Bundle\EntityExtendBundle\Tests\Functional\AbstractConfigControllerTest;
use Oro\Bundle\TestFrameworkBundle\Entity\TestActivityTarget;
use Oro\Bundle\UIBundle\Route\Router;

/**
 *
 * @SuppressWarnings(PHPMD.TooManyPublicMethods)
 */
class AttributeControllerTest extends AbstractConfigControllerTest
{
    public function testIndex()
    {
        $this->client->request(
            'GET',
            $this->getUrl('oro_attribute_index', ['alias' => $this->getTestEntityAlias()])
        );
        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 200);
    }

    /**
     * @return array
     */
    public function fieldTypesProvider()
    {
        return [
            ['bigint'],
            ['boolean'],
            ['money'],<commit_msg>BAP-16784: Fix form types issues for platform application - revert group for AttributeControllerTest<commit_after><?php

namespace Oro\Bundle\EntityConfigBundle\Tests\Functional\Controller;

use Doctrine\ORM\EntityManager;
use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel;
use Oro\Bundle\EntityConfigBundle\Entity\FieldConfigModel;
use Oro\Bundle\EntityExtendBundle\Tests\Functional\AbstractConfigControllerTest;
use Oro\Bundle\TestFrameworkBundle\Entity\TestActivityTarget;
use Oro\Bundle\UIBundle\Route\Router;

/**
 * @group dist
 *
 * @SuppressWarnings(PHPMD.TooManyPublicMethods)
 */
class AttributeControllerTest extends AbstractConfigControllerTest
{
    public function testIndex()
    {
        $this->client->request(
            'GET',
            $this->getUrl('oro_attribute_index', ['alias' => $this->getTestEntityAlias()])
        );
        $result = $this->client->getResponse();
        $this->assertHtmlResponseStatusCodeEquals($result, 200);
    }

    /**
     * @return array
     */
    public function fieldTypesProvider()
    {
        return [
            ['bigint'],
            ['boolean'],
            ['money'],
{'fraction_non_alphanumeric': 0.12045454545454545, 'fraction_numerical': 0.005, 'mean_word_length': 3.4826883910386965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1093978', 'n_tokens_mistral': 613, 'n_tokens_neox': 608, 'n_words': 94}