Skip to content
Snippets Groups Projects
Commit fdfd3c7d authored by catch's avatar catch
Browse files

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

parent 3b84f7b2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment