| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | function it_renders_blocks_for_given_event(Environment $twig): void |
||
| 23 | { |
||
| 24 | $this->beConstructedWith($twig, [ |
||
| 25 | 'event_name' => [ |
||
| 26 | 'first.html.twig', |
||
| 27 | 'second.html.twig', |
||
| 28 | ], |
||
| 29 | ]); |
||
| 30 | |||
| 31 | $twig->render('first.html.twig', ['option' => 'value'])->willReturn('First template'); |
||
| 32 | $twig->render('second.html.twig', ['option' => 'value'])->willReturn('Second template'); |
||
| 33 | |||
| 34 | $this->renderBlocksForEvent('event_name', ['option' => 'value'])->shouldReturn( |
||
| 35 | "First template\nSecond template" |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 48 |