Skip to content
Snippets Groups Projects
Commit 58964deb authored by Angie Byron's avatar Angie Byron
Browse files

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

parent bd99f90f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment