Beautified cart test
This commit is contained in:
@@ -47,6 +47,10 @@ class CartTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$container = new \Symfony\Component\DependencyInjection\ContainerBuilder();
|
$container = new \Symfony\Component\DependencyInjection\ContainerBuilder();
|
||||||
|
|
||||||
|
$dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface");
|
||||||
|
|
||||||
|
$container->set("event_dispatcher", $dispatcher);
|
||||||
|
|
||||||
return $container;
|
return $container;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,12 +63,8 @@ class CartTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->uniqid = uniqid('', true);
|
$this->uniqid = uniqid('', true);
|
||||||
|
|
||||||
$dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface");
|
|
||||||
|
|
||||||
$container = $this->getContainer();
|
$container = $this->getContainer();
|
||||||
|
|
||||||
$container->set("event_dispatcher", $dispatcher);
|
|
||||||
|
|
||||||
$this->actionCart = $this->getMock(
|
$this->actionCart = $this->getMock(
|
||||||
"\Thelia\Action\Cart",
|
"\Thelia\Action\Cart",
|
||||||
array("generateCookie", "redirect"),
|
array("generateCookie", "redirect"),
|
||||||
|
|||||||
Reference in New Issue
Block a user