Beautified cart test

This commit is contained in:
franck
2013-08-09 10:54:28 +02:00
parent 8eaa2de960
commit d365146231

View File

@@ -47,6 +47,10 @@ class CartTest extends \PHPUnit_Framework_TestCase
{
$container = new \Symfony\Component\DependencyInjection\ContainerBuilder();
$dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface");
$container->set("event_dispatcher", $dispatcher);
return $container;
}
@@ -59,12 +63,8 @@ class CartTest extends \PHPUnit_Framework_TestCase
$this->uniqid = uniqid('', true);
$dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface");
$container = $this->getContainer();
$container->set("event_dispatcher", $dispatcher);
$this->actionCart = $this->getMock(
"\Thelia\Action\Cart",
array("generateCookie", "redirect"),