Skip to content

Commit

Permalink
Merge pull request #8 from andychan94/master
Browse files Browse the repository at this point in the history
Fixed the paths to views
  • Loading branch information
bitbager authored Nov 7, 2018
2 parents de46e83 + 7c798e7 commit a05c337
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/Controller/Action/ListWishlistProductsActionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function it_lists_wishlist_items(
])->willReturn($form);
$form->isSubmitted()->willReturn(false);
$form->createView()->willReturn($formView);
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/Resources/views/wishlist.html.twig', [
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/wishlist.html.twig', [
'wishlist' => $wishlist,
'form' => $formView,
])->willReturn($response);
Expand Down Expand Up @@ -116,7 +116,7 @@ function it_adds_wishlist_items_to_the_cart(
$form->getData()->willReturn([$addToCartCommand]);
$addToCartCommand->getCart()->willReturn($cartItem);
$cartItem->getQuantity()->willReturn(1);
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/Resources/views/wishlist.html.twig', [
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/wishlist.html.twig', [
'wishlist' => $wishlist,
'form' => $formView,
])->willReturn($response);
Expand Down
2 changes: 1 addition & 1 deletion spec/Controller/Action/RenderHeaderTemplateActionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function it_renders_header_template(
Response $response
): void {
$wishlistContext->getWishlist($request)->willReturn($wishlist);
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/Resources/views/_wishlistHeader.html.twig', [
$templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/_wishlistHeader.html.twig', [
'wishlist' => $wishlist,
])->willReturn($response);

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Action/ListWishlistProductsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function __invoke(Request $request): Response
$this->flashBag->add('success', $this->translator->trans('bitbag_sylius_wishlist_plugin.ui.added_to_cart'));
}

return $this->templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/Resources/views/wishlist.html.twig', [
return $this->templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/wishlist.html.twig', [
'wishlist' => $wishlist,
'form' => $form->createView(),
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Action/RenderHeaderTemplateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __invoke(Request $request): Response
{
$wishlist = $this->wishlistContext->getWishlist($request);

return $this->templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/Resources/views/_wishlistHeader.html.twig', [
return $this->templatingEngine->renderResponse('@BitBagSyliusWishlistPlugin/_wishlistHeader.html.twig', [
'wishlist' => $wishlist,
]);
}
Expand Down

0 comments on commit a05c337

Please sign in to comment.