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);