From 46e9c1fb2ce969caec85df64b2b1d364e39a149c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 17 May 2015 10:24:49 -0400 Subject: Fix bug when creating project in Dutch --- tests/units/ProjectTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/units/ProjectTest.php b/tests/units/ProjectTest.php index 9f49af8a..fec53c2b 100644 --- a/tests/units/ProjectTest.php +++ b/tests/units/ProjectTest.php @@ -2,6 +2,7 @@ require_once __DIR__.'/Base.php'; +use Core\Translator; use Subscriber\ProjectModificationDateSubscriber; use Model\Project; use Model\ProjectPermission; @@ -15,6 +16,19 @@ use Model\Category; class ProjectTest extends Base { + public function testCreationForAllLanguages() + { + $c = new Config($this->container); + $p = new Project($this->container); + + foreach ($c->getLanguages() as $locale => $language) { + Translator::load($locale); + $this->assertNotFalse($p->create(array('name' => 'UnitTest '.$locale)), 'Unable to create project with '.$locale.':'.$language); + } + + Translator::load('en_US'); + } + public function testCreation() { $p = new Project($this->container); -- cgit v1.2.3