Skip to content

Commit

Permalink
updated phpspec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andychan94 committed Nov 6, 2018
1 parent 4118dc7 commit 7c798e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/Controller/Action/ListWishlistProductsActionSpec.php
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
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

0 comments on commit 7c798e7

Please sign in to comment.