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() {
protected function setUp() {
parent::setUp();
for ($i = 0; $i < 3; $i++) {
$language = new Language();
$language->id = $this->randomName(2);
$language->weight = -$i;
$i = 0;
foreach (array('af', 'am', 'ar') as $langcode) {
$language = new Language(array(
'id' => $langcode,
'weight' => $i--,
));
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