Fix specs

This commit is contained in:
Paweł Jędrzejewski 2012-11-07 13:35:04 +01:00
parent 0cbed919a9
commit 563ee96841

View file

@ -49,7 +49,7 @@ class CartProvider extends ObjectBehavior
function it_should_look_for_cart_by_identifier_if_any($storage, $repository, $cart) function it_should_look_for_cart_by_identifier_if_any($storage, $repository, $cart)
{ {
$storage->getCurrentCartIdentifier()->willReturn(3); $storage->getCurrentCartIdentifier()->willReturn(3);
$repository->find(array('id' => 3))->shouldBeCalled()->willReturn($cart); $repository->get(array('id' => 3))->shouldBeCalled()->willReturn($cart);
$this->getCart()->shouldReturn($cart); $this->getCart()->shouldReturn($cart);
} }
@ -68,7 +68,7 @@ class CartProvider extends ObjectBehavior
/** /**
* @param Sylius\Bundle\CartBundle\Model\CartInterface $cart * @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); $storage->getCurrentCartIdentifier()->willReturn(7);
$repository->get(array('id' => 7))->shouldBeCalled()->willReturn(null); $repository->get(array('id' => 7))->shouldBeCalled()->willReturn(null);