From 563ee96841583f57a9de0a3fc3c66a4d5220393e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20J=C4=99drzejewski?= Date: Wed, 7 Nov 2012 13:35:04 +0100 Subject: [PATCH] Fix specs --- .../spec/Sylius/Bundle/CartBundle/Provider/CartProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/CartBundle/spec/Sylius/Bundle/CartBundle/Provider/CartProvider.php b/src/Sylius/Bundle/CartBundle/spec/Sylius/Bundle/CartBundle/Provider/CartProvider.php index 5403a55554..af02b8aee0 100644 --- a/src/Sylius/Bundle/CartBundle/spec/Sylius/Bundle/CartBundle/Provider/CartProvider.php +++ b/src/Sylius/Bundle/CartBundle/spec/Sylius/Bundle/CartBundle/Provider/CartProvider.php @@ -49,7 +49,7 @@ class CartProvider extends ObjectBehavior function it_should_look_for_cart_by_identifier_if_any($storage, $repository, $cart) { $storage->getCurrentCartIdentifier()->willReturn(3); - $repository->find(array('id' => 3))->shouldBeCalled()->willReturn($cart); + $repository->get(array('id' => 3))->shouldBeCalled()->willReturn($cart); $this->getCart()->shouldReturn($cart); } @@ -68,7 +68,7 @@ class CartProvider extends ObjectBehavior /** * @param Sylius\Bundle\CartBundle\Model\CartInterface $cart */ - function it_should_create_new_cart_if_identifier_is_wrong($storage, $repository, $cart) + function it_should_create_new_cart_if_identifier_is_wrong($storage, $manager, $repository, $cart) { $storage->getCurrentCartIdentifier()->willReturn(7); $repository->get(array('id' => 7))->shouldBeCalled()->willReturn(null);