Fixed cart tests

This commit is contained in:
franck
2013-08-09 10:53:38 +02:00
parent 00100945f6
commit 8eaa2de960
2 changed files with 12 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ trait CartTrait {
$session->setCart($newCart->getId());
$cartEvent = new CartEvent($newCart);
$this->dispatcher->dispatch(TheliaEvents::CART_DUPLICATE, $cartEvent);
$this->getDispatcher()->dispatch(TheliaEvents::CART_DUPLICATE, $cartEvent);
return $cartEvent->cart;
}