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