aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/languages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/languages')
-rw-r--r--tests/languages/fr/LanguagesFrTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/languages/fr/LanguagesFrTest.php b/tests/languages/fr/LanguagesFrTest.php
index c05a0f98..79d05172 100644
--- a/tests/languages/fr/LanguagesFrTest.php
+++ b/tests/languages/fr/LanguagesFrTest.php
@@ -155,7 +155,8 @@ class LanguagesFrTest extends \PHPUnit_Framework_TestCase
155 $this->conf->set('translation.mode', 'gettext'); 155 $this->conf->set('translation.mode', 'gettext');
156 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 156 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
157 new Languages('en', $this->conf); 157 new Languages('en', $this->conf);
158 $this->assertEquals('voiture', t('car', 'car', 1, 'test')); 158 $txt = 'car'; // ignore me poedit
159 $this->assertEquals('voiture', t($txt, $txt, 1, 'test'));
159 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test')); 160 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test'));
160 } 161 }
161 162
@@ -167,7 +168,8 @@ class LanguagesFrTest extends \PHPUnit_Framework_TestCase
167 $this->conf->set('translation.mode', 'php'); 168 $this->conf->set('translation.mode', 'php');
168 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 169 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
169 new Languages('en', $this->conf); 170 new Languages('en', $this->conf);
170 $this->assertEquals('voiture', t('car', 'car', 1, 'test')); 171 $txt = 'car'; // ignore me poedit
172 $this->assertEquals('voiture', t($txt, $txt, 1, 'test'));
171 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test')); 173 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test'));
172 } 174 }
173} 175}