mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix specs
This commit is contained in:
parent
0cbed919a9
commit
563ee96841
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue