Skip to content

Commit 809b5f7

Browse files
committed
Fix tests
1 parent c896469 commit 809b5f7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

spec/Storefront/Controller/ResultControllerSpec.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Shopware\Storefront\Framework\Routing\RequestTransformer;
2323
use Shopware\Storefront\Page\GenericPageLoader;
2424
use Shopware\Storefront\Page\Page;
25+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
2526
use Symfony\Component\HttpFoundation\ParameterBag;
2627
use Symfony\Component\HttpFoundation\Request;
2728
use 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

Comments
 (0)