Code Duplication    Length = 12-12 lines in 2 locations

Tests/Unit/Controller/Create/AutoFormProcessorTest.php 1 location

@@ 12-23 (lines=12) @@
9
use ScayTrase\Api\Cruds\Tests\Unit\Controller\CreateControllerTest;
10
use Symfony\Component\Form\FormFactoryBuilder;
11
12
class AutoFormProcessorTest extends CreateControllerTest
13
{
14
    /** {@inheritdoc} */
15
    protected function createProcessor($fqcn)
16
    {
17
        $builder = new FormFactoryBuilder();
18
        $builder->addTypeGuesser(new PhpDocTypeGuesser());
19
        $factory = $builder->getFormFactory();
20
21
        return new AutoFormProcessor(new MappedEntityFormFactory($factory, new PublicPropertyMapper()));
22
    }
23
}
24

Tests/Unit/Controller/Update/AutoFormProcessorTest.php 1 location

@@ 12-23 (lines=12) @@
9
use ScayTrase\Api\Cruds\Tests\Unit\Controller\UpdateControllerTest;
10
use Symfony\Component\Form\FormFactoryBuilder;
11
12
class AutoFormProcessorTest extends UpdateControllerTest
13
{
14
    /** {@inheritdoc} */
15
    protected function createProcessor($fqcn)
16
    {
17
        $builder = new FormFactoryBuilder();
18
        $builder->addTypeGuesser(new PhpDocTypeGuesser());
19
        $factory = $builder->getFormFactory();
20
21
        return new AutoFormProcessor(new MappedEntityFormFactory($factory, new PublicPropertyMapper()));
22
    }
23
}
24