Skip to content

Commit 0b25e8c

Browse files
committed
Fix TwigGridRendererSpec
1 parent 0a4345d commit 0b25e8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Bundle/spec/Grid/Renderer/TwigGridRendererSpec.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function it_uses_twig_to_render_the_action(
5858
): void {
5959
$action->getType()->willReturn('link');
6060
$action->getOptions()->willReturn([]);
61+
$action->getTemplate()->willReturn(null);
6162

6263
$gridView->getRequestConfiguration()->willReturn($requestConfiguration);
6364
$requestConfiguration->getRequest()->willReturn($request);
@@ -83,6 +84,7 @@ function it_throws_an_exception_if_template_is_not_configured_for_given_action_t
8384
): void {
8485
$action->getOptions()->willReturn([]);
8586
$action->getType()->willReturn('foo');
87+
$action->getTemplate()->willReturn(null);
8688

8789
$this
8890
->shouldThrow(new \InvalidArgumentException('Missing template for action type "foo".'))

0 commit comments

Comments
 (0)