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