Issue #2397691 by alexpott, poker10, Sivaji_Ganesh_Jojodae, webchick: Random fail in testNodeTermCreationAndDeletion()

merge-requests/3045/head
mcdruid 2022-11-25 17:19:18 +00:00
parent 8106fbe585
commit e8f1cbd51f
1 changed files with 6 additions and 3 deletions

View File

@ -661,10 +661,13 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase {
$instance['widget'] = array('type' => 'taxonomy_autocomplete');
$instance['bundle'] = 'page';
field_create_instance($instance);
// Prefix the terms with a letter to ensure there is no clash in the first
// three letters.
// @see https://www.drupal.org/node/2397691
$terms = array(
'term1' => $this->randomName(),
'term2' => $this->randomName() . ', ' . $this->randomName(),
'term3' => $this->randomName(),
'term1' => 'a' . $this->randomName(),
'term2' => 'b' . $this->randomName() . ', ' . $this->randomName(),
'term3' => 'c' . $this->randomName(),
);
$edit = array();