aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LanguagesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/LanguagesTest.php')
-rw-r--r--tests/LanguagesTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/LanguagesTest.php b/tests/LanguagesTest.php
index 46bfcd72..864ce630 100644
--- a/tests/LanguagesTest.php
+++ b/tests/LanguagesTest.php
@@ -183,7 +183,8 @@ class LanguagesTest extends \PHPUnit_Framework_TestCase
183 $this->conf->set('translation.mode', 'gettext'); 183 $this->conf->set('translation.mode', 'gettext');
184 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 184 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
185 new Languages('en', $this->conf); 185 new Languages('en', $this->conf);
186 $this->assertEquals('car', t('car', 'car', 1, 'test')); 186 $txt = 'car'; // ignore me poedit
187 $this->assertEquals('car', t($txt, $txt, 1, 'test'));
187 $this->assertEquals('Search', t('Search', 'Search', 1, 'test')); 188 $this->assertEquals('Search', t('Search', 'Search', 1, 'test'));
188 } 189 }
189 190
@@ -195,7 +196,8 @@ class LanguagesTest extends \PHPUnit_Framework_TestCase
195 $this->conf->set('translation.mode', 'php'); 196 $this->conf->set('translation.mode', 'php');
196 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 197 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
197 new Languages('en', $this->conf); 198 new Languages('en', $this->conf);
198 $this->assertEquals('car', t('car', 'car', 1, 'test')); 199 $txt = 'car'; // ignore me poedit
200 $this->assertEquals('car', t($txt, $txt, 1, 'test'));
199 $this->assertEquals('Search', t('Search', 'Search', 1, 'test')); 201 $this->assertEquals('Search', t('Search', 'Search', 1, 'test'));
200 } 202 }
201} 203}