@@ 20-37 (lines=18) @@ | ||
17 | { |
|
18 | private $factory; |
|
19 | ||
20 | public function setUp() |
|
21 | { |
|
22 | $container = $this->getContainer([ |
|
23 | 'mapping' => [ |
|
24 | Article::class => [ |
|
25 | 'fields' => [ |
|
26 | 'title' => [ |
|
27 | 'type' => 'text', |
|
28 | ], |
|
29 | 'image' => [ |
|
30 | 'type' => 'image', |
|
31 | ], |
|
32 | ], |
|
33 | ], |
|
34 | ], |
|
35 | ]); |
|
36 | $this->factory = $container->get('psi_content_type.view.factory'); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @Subject() |
@@ 16-32 (lines=17) @@ | ||
13 | private $renderer; |
|
14 | private $viewFactory; |
|
15 | ||
16 | public function setUp() |
|
17 | { |
|
18 | $container = $this->getContainer([ |
|
19 | 'mapping' => [ |
|
20 | Article::class => [ |
|
21 | 'alias' => 'article', |
|
22 | 'fields' => [ |
|
23 | 'title' => [ |
|
24 | 'type' => 'text', |
|
25 | ], |
|
26 | ], |
|
27 | ], |
|
28 | ], |
|
29 | ]); |
|
30 | $this->renderer = $container->get('psi_content_type.view.twig.renderer'); |
|
31 | $this->viewFactory = $container->get('psi_content_type.view.factory'); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * It should renderer a views. |