aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/LanguagesTest.php6
-rw-r--r--tests/languages/fr/LanguagesFrTest.php6
2 files changed, 8 insertions, 4 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}
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}