fix test suite issue

This commit is contained in:
Manuel Raynaud
2013-08-13 09:34:08 +02:00
parent be5d1e9ddb
commit 7f83225645
6 changed files with 243 additions and 235 deletions

View File

@@ -50,8 +50,7 @@ class Cart extends BaseAction implements EventSubscriberInterface
/**
*
* add an article in the current cart
*
* @param \Thelia\Core\Event\ActionEvent $event
* @param \Thelia\Core\Event\CartEvent $event
*/
public function addArticle(CartEvent $event)
{
@@ -85,7 +84,6 @@ class Cart extends BaseAction implements EventSubscriberInterface
$this->updateQuantity($cartItem, $quantity);
}
$this->redirect($cartAdd->getSuccessUrl($request->getUriAddingParameters(array("addCart" => 1))));
} catch (PropelException $e) {
\Thelia\Log\Tlog::getInstance()->error(sprintf("Failed to add item to cart with message : %s", $e->getMessage()));
$message = "Failed to add this article to your cart, please try again";