2222use Shopware \Storefront \Framework \Routing \RequestTransformer ;
2323use Shopware \Storefront \Page \GenericPageLoader ;
2424use Shopware \Storefront \Page \Page ;
25+ use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
2526use Symfony \Component \HttpFoundation \ParameterBag ;
2627use Symfony \Component \HttpFoundation \Request ;
2728use Symfony \Component \HttpFoundation \RequestStack ;
@@ -78,15 +79,15 @@ public function let(
7879 $ this ->container ->get (SeoUrlPlaceholderHandlerInterface::class)->willReturn ($ seoUrlPlaceholderHandler );
7980 $ this ->container ->get (MediaUrlPlaceholderHandlerInterface::class)->willReturn ($ mediaUrlPlaceholderHandler );
8081 $ this ->container ->get ('twig ' )->willReturn ($ twig );
81- $ this ->setTwig ($ twig );
8282 $ nestedEventDispatcher ->dispatch (Argument::any ())->willReturn (Argument::any ());
8383 $ this ->setContainer ($ container );
8484 }
8585
8686 public function it_should_return_original_response_content_when_ssr_is_not_active (
8787 SearchAdapter $ searchAdapter ,
8888 Page $ page ,
89- Engine $ handlebars
89+ Engine $ handlebars ,
90+ EventDispatcherInterface $ eventDispatcher
9091 ): void {
9192 $ content = 'original content ' ;
9293 $ this ->pageLoader ->load ($ this ->request , $ this ->salesChannelContext )->willReturn ($ page );
@@ -98,7 +99,8 @@ public function it_should_return_original_response_content_when_ssr_is_not_activ
9899 $ this ->request ,
99100 $ this ->salesChannelContext ,
100101 $ searchAdapter ,
101- $ handlebars
102+ $ handlebars ,
103+ $ eventDispatcher
102104 );
103105
104106 $ response ->shouldBeAnInstanceOf (Response::class);
0 commit comments