@@ -17,7 +17,7 @@ public function testRenderStoryWithRestrictedContentThrowsException(string $temp
1717 self ::bootKernel ();
1818
1919 $ renderer = static ::getContainer ()->get ('storybook.story_renderer ' );
20- $ story = new Story ('story ' , $ template , new Args ());
20+ $ story = new Story ('story ' , ' story.html.twig ' , $ template , new Args ());
2121
2222 $ this ->expectException (UnauthorizedStoryException::class);
2323
@@ -80,7 +80,7 @@ public function testRenderStoryWithAllowedContent(string $template, array $args
8080 self ::bootKernel ();
8181
8282 $ renderer = static ::getContainer ()->get ('storybook.story_renderer ' );
83- $ story = new Story ('story ' , $ template , new Args ($ args ));
83+ $ story = new Story ('story ' , ' story.html.twig ' , $ template , new Args ($ args ));
8484
8585 $ content = $ renderer ->render ($ story );
8686
@@ -169,7 +169,7 @@ public function testComponentUsingTrait()
169169
170170 $ renderer = static ::getContainer ()->get ('storybook.story_renderer ' );
171171
172- $ story = new Story ('story ' , '<twig:ComponentUsingTrait /> ' , new Args ());
172+ $ story = new Story ('story ' , 'story.html.twig ' , ' <twig:ComponentUsingTrait /> ' , new Args ());
173173
174174 $ content = $ renderer ->render ($ story );
175175
@@ -187,8 +187,8 @@ public function testPassingPropsFromContextVariableWithSameName()
187187
188188 $ renderer = static ::getContainer ()->get ('storybook.story_renderer ' );
189189
190- $ storyWithFunction = new Story ('story ' , '<twig:AnonymousComponent :prop1="prop1"/> ' , new Args (['prop1 ' => 'foo ' ]));
191- $ storyWithTag = new Story ('story ' , '<twig:AnonymousComponent :prop1="prop1"></twig:AnonymousComponent> ' , new Args (['prop1 ' => 'foo ' ]));
190+ $ storyWithFunction = new Story ('story ' , 'story.html.twig ' , ' <twig:AnonymousComponent :prop1="prop1"/> ' , new Args (['prop1 ' => 'foo ' ]));
191+ $ storyWithTag = new Story ('story ' , 'story.html.twig ' , ' <twig:AnonymousComponent :prop1="prop1"></twig:AnonymousComponent> ' , new Args (['prop1 ' => 'foo ' ]));
192192
193193 $ this ->assertEquals ($ renderer ->render ($ storyWithFunction ), $ renderer ->render ($ storyWithTag ));
194194 }
@@ -199,7 +199,7 @@ public function testComponentAttributeRendering()
199199
200200 $ renderer = static ::getContainer ()->get ('storybook.story_renderer ' );
201201
202- $ story = new Story ('story ' , '<twig:AnonymousComponent foo="bar"></twig:AnonymousComponent> ' , new Args ());
202+ $ story = new Story ('story ' , 'story.html.twig ' , ' <twig:AnonymousComponent foo="bar"></twig:AnonymousComponent> ' , new Args ());
203203
204204 $ this ->assertStringContainsString ('foo="bar" ' , $ renderer ->render ($ story ));
205205 }
0 commit comments