<commit_before><?php

namespace OpenOrchestra\FunctionalTests\ModelBundle\Model;
use OpenOrchestra\BaseBundle\Tests\AbstractTest\AbstractBaseTestCase;

/**
 * Description of BaseNodeTest
 *
 * @group integrationTest
 */
class EntityTest extends AbstractBaseTestCase
{
    /**
     * @param string $class
     * @param string $interface
     *
     * @dataProvider providateClassInterfaceRelation
     */
    public function testInstance($class, $interface)
    {
        $fullClass = 'OpenOrchestra\ModelBundle\Document\\' . $class;
        $fullInterface = 'OpenOrchestra\ModelInterface\Model\\' . $interface;
        $entity = new $fullClass();

        $this->assertInstanceOf($fullInterface, $entity);
    }

    /**
     * @return array
     */
    public function providateClassInterfaceRelation()
    {
        return array(
            array('Node',             'NodeInterface'),
            array('Node',             'ReadNodeInterface'),
            array('Node',             'AreaContainerInterface'),
            array('Node',             'SchemeableInterface'),
            array('Node',             'ReadSchemeableInterface'),
            array('Node',             'VersionableInterface'),
            array('Node',             'SoftDeleteableInterface'),
            array('Area',             'AreaContainerInterface'),
            array('Template',         'AreaContainerInterface'),
            array('Node',             'BlockContainerInterface'),
            array('Template',         'BlockContainerInterface'),
            array('Node',             'StatusableInterface'),
            array('Content',          'StatusableInterface'),
            array('Content',          'SoftDeleteableInterface'),
            array('Content',          'VersionableInterface'),
            array('Content',          'SiteLinkableInterface'),
            array('ContentType',      'SiteLinkableInterface'),
            array('ContentType',      'TranslatedValueContainerInterface'),
            array('FieldType',        'TranslatedValueContainerInterface'),
            array('Area',             'AreaInterface'),
            array('Area',             'ReadAreaInterface'),
            array('Block',            'BlockInterface'),
            array('Block',            'ReadBlockInterface'),
            array('ContentAttribute', 'ContentAttributeInterface'),
            array('ContentAttribute', 'ReadContentAttributeInterface'),<commit_msg>fix functional test<commit_after><?php

namespace OpenOrchestra\FunctionalTests\ModelBundle\Model;
use OpenOrchestra\BaseBundle\Tests\AbstractTest\AbstractBaseTestCase;

/**
 * Description of BaseNodeTest
 *
 * @group integrationTest
 */
class EntityTest extends AbstractBaseTestCase
{
    /**
     * @param string $class
     * @param string $interface
     *
     * @dataProvider providateClassInterfaceRelation
     */
    public function testInstance($class, $interface)
    {
        $fullClass = 'OpenOrchestra\ModelBundle\Document\\' . $class;
        $fullInterface = 'OpenOrchestra\ModelInterface\Model\\' . $interface;
        $entity = new $fullClass();

        $this->assertInstanceOf($fullInterface, $entity);
    }

    /**
     * @return array
     */
    public function providateClassInterfaceRelation()
    {
        return array(
            array('Node',             'NodeInterface'),
            array('Node',             'ReadNodeInterface'),
            array('Node',             'SchemeableInterface'),
            array('Node',             'ReadSchemeableInterface'),
            array('Node',             'VersionableInterface'),
            array('Node',             'SoftDeleteableInterface'),
            array('Area',             'AreaContainerInterface'),
            array('Node',             'BlockContainerInterface'),
            array('Node',             'StatusableInterface'),
            array('Content',          'StatusableInterface'),
            array('Content',          'SoftDeleteableInterface'),
            array('Content',          'VersionableInterface'),
            array('Content',          'SiteLinkableInterface'),
            array('ContentType',      'SiteLinkableInterface'),
            array('ContentType',      'TranslatedValueContainerInterface'),
            array('FieldType',        'TranslatedValueContainerInterface'),
            array('Area',             'AreaInterface'),
            array('Area',             'ReadAreaInterface'),
            array('Block',            'BlockInterface'),
            array('Block',            'ReadBlockInterface'),
            array('ContentAttribute', 'ContentAttributeInterface'),
            array('ContentAttribute', 'ReadContentAttributeInterface'),
{'fraction_non_alphanumeric': 0.11932059447983015, 'fraction_numerical': 0.0, 'mean_word_length': 2.130232558139535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '829487', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1052, 'n_words': 183}