Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function test_initContentBlocks() |
||
27 | { |
||
28 | /** @var View\View|Mock $view */ |
||
29 | $view = \Mockery::mock(View::class)->makePartial(); |
||
30 | $view->shouldReceive('load')->with('/test_name/test_action')->andReturnTrue(); |
||
31 | |||
32 | $controller = new ViewController(); |
||
33 | $controller->setName('testName'); |
||
34 | $controller->setAction('testAction'); |
||
35 | ControllerViewHydrator::initContentBlocks($view, $controller); |
||
|
|||
36 | |||
37 | self::assertNull($view->render('content')); |
||
38 | } |
||
39 | } |