Commit 58964deb authored by webchick's avatar webchick

Issue #1635084 follow-up by xjm: Fix random test failures.

parent bd99f90f
......@@ -187,8 +187,8 @@ function testDeleteLanguage() {
variable_set('locale_translate_file_directory', $dir);
$langcode = 'de';
$this->addLanguage($langcode);
$file_uri = $dir . '/po_' . $this->randomString() . '.' . $langcode . '.po';
file_put_contents($file_uri, $this->randomString());
$file_uri = $dir . '/po_' . $this->randomName() . '.' . $langcode . '.po';
file_put_contents($file_uri, $this->randomName());
$this->assertTrue(is_file($file_uri), 'Translation file is created.');
language_delete($langcode);
$this->assertTrue($file_uri);
......
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