Commit fdfd3c7d authored by catch's avatar catch

Issue #2291777 by alexpott: Fixed Random fail in LanguageFallbackTest.

parent 3b84f7b2
...@@ -29,10 +29,12 @@ public static function getInfo() { ...@@ -29,10 +29,12 @@ public static function getInfo() {
protected function setUp() { protected function setUp() {
parent::setUp(); parent::setUp();
for ($i = 0; $i < 3; $i++) { $i = 0;
$language = new Language(); foreach (array('af', 'am', 'ar') as $langcode) {
$language->id = $this->randomName(2); $language = new Language(array(
$language->weight = -$i; 'id' => $langcode,
'weight' => $i--,
));
language_save($language); language_save($language);
} }
} }
......
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