2323use Sylius \Component \Channel \Context \ChannelContextInterface ;
2424use Sylius \Component \Core \Model \ChannelInterface ;
2525use Sylius \Component \Core \Model \ProductInterface ;
26- use Symfony \ Component \ Templating \ EngineInterface ;
26+ use Twig \ Environment ;
2727
2828final class RenderProductPagesRuntimeSpec extends ObjectBehavior
2929{
3030 function let (
3131 PageRepositoryInterface $ pageRepository ,
3232 ChannelContextInterface $ channelContext ,
33- EngineInterface $ templatingEngine ,
33+ Environment $ templatingEngine ,
3434 SectionsSorterInterface $ sectionsSorter
3535 ): void {
3636 $ this ->beConstructedWith ($ pageRepository , $ channelContext , $ templatingEngine , $ sectionsSorter );
@@ -53,7 +53,7 @@ function it_renders_product_pages(
5353 PageRepositoryInterface $ pageRepository ,
5454 PageInterface $ page ,
5555 SectionInterface $ section ,
56- EngineInterface $ templatingEngine ,
56+ Environment $ templatingEngine ,
5757 SectionsSorterInterface $ sectionsSorter
5858 ): void {
5959 $ channel ->getCode ()->willReturn ('WEB ' );
@@ -74,7 +74,7 @@ function it_renders_product_pages_with_sections(
7474 PageRepositoryInterface $ pageRepository ,
7575 PageInterface $ page ,
7676 SectionInterface $ section ,
77- EngineInterface $ templatingEngine ,
77+ Environment $ templatingEngine ,
7878 SectionsSorterInterface $ sectionsSorter
7979 ): void {
8080 $ channel ->getCode ()->willReturn ('WEB ' );
0 commit comments