Commit 00afbccd authored by alexpott's avatar alexpott
Browse files

Issue #2271485 by amitgoyal, Juanmamr | YesCT: Fixed Move LocaleStringTest...

Issue #2271485 by amitgoyal, Juanmamr | YesCT: Fixed Move LocaleStringTest $only_translated = array('untranslated' => FALSE); out of accidental comment.
parent 8878f6b1
......@@ -152,7 +152,8 @@ function testStringSearchAPI() {
$found = $this->storage->findTranslation(array('language' => $langcode, 'source' => $source3->source, 'context' => $source3->context));
$this->assertTrue($found && $found->lid == $source3->lid && !isset($found->translation) && $found->isNew(), 'Translation not found but source string found.');
// Load all translations. For next queries we'll be loading only translated strings. $only_translated = array('untranslated' => FALSE);
// Load all translations. For next queries we'll be loading only translated
// strings.
$translations = $this->storage->getTranslations(array('translated' => TRUE));
$this->assertEqual(count($translations), 2 * $language_count, 'Created and retrieved all translations for source strings.');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment