From f2bef49ad62337ca8f2b3ee989aa0086011f63a0 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 21 Nov 2020 14:38:37 +0100 Subject: [PATCH] fixup! Make sure locale is always set, even on first request --- tests/ControllerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php index ec32398..ee3ce16 100644 --- a/tests/ControllerTest.php +++ b/tests/ControllerTest.php @@ -6,6 +6,7 @@ namespace Alltube\Test; +use Alltube\Locale; use Alltube\Controller\BaseController; use Alltube\Controller\DownloadController; use Alltube\Controller\FrontController; @@ -34,6 +35,8 @@ abstract class ControllerTest extends ContainerTest { parent::setUp(); + $this->container->get('locale')->setLocale(new Locale('en_US')); + $frontController = new FrontController($this->container); $downloadController = new DownloadController($this->container);