From 069211315d645286c04361a6c194085336c614f5 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 18 Apr 2014 20:09:44 +0200 Subject: [PATCH] Added translator to the mockup container --- core/lib/Thelia/Tests/Core/Template/Element/BaseLoopTestor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/Thelia/Tests/Core/Template/Element/BaseLoopTestor.php b/core/lib/Thelia/Tests/Core/Template/Element/BaseLoopTestor.php index dabee6c5e..69505ce62 100755 --- a/core/lib/Thelia/Tests/Core/Template/Element/BaseLoopTestor.php +++ b/core/lib/Thelia/Tests/Core/Template/Element/BaseLoopTestor.php @@ -18,6 +18,7 @@ use Thelia\Core\HttpFoundation\Request; use Thelia\Core\Security\SecurityContext; use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Thelia\Core\HttpFoundation\Session\Session; +use Thelia\Core\Translation\Translator; use Thelia\Tools\URL; use Thelia\TaxEngine\TaxEngine; @@ -95,6 +96,7 @@ abstract class BaseLoopTestor extends \PHPUnit_Framework_TestCase $this->container->set('request', $request); $this->container->set('event_dispatcher', new EventDispatcher()); + $this->container->set('thelia.translator',new Translator($this->container)); $this->container->set('thelia.securityContext', new SecurityContext($request)); $this->container->set('router.admin', $stubRouterAdmin); $this->container->set('thelia.url.manager', new URL($this->container));