Completed
Pull Request — master (#15)
by Pavel
14:19
created

FormProcessorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createProcessor() 0 7 1
1
<?php
2
3
namespace ScayTrase\Api\Cruds\Tests\Unit\Controller\Create;
4
5
use ScayTrase\Api\Cruds\Adaptors\Symfony\FormProcessor;
6
use ScayTrase\Api\Cruds\Tests\Unit\Controller\CreateControllerTest;
7
use Symfony\Component\Form\FormFactoryBuilder;
8
9
class FormProcessorTest extends CreateControllerTest
10
{
11
12
    /** {@inheritdoc} */
13
    protected function createProcessor($fqcn)
14
    {
15
        $builder = new FormFactoryBuilder();
16
        $factory = $builder->getFormFactory();
17
18
        return new FormProcessor(\ScayTrase\Api\Cruds\Tests\Fixtures\Form\AbcFormType::class, [], $factory);
19
    }
20
}
21