Issue #3030902 by Krzysztof Domański, amateescu, xjm: Random fail in EntityReferenceAdminTest

merge-requests/1119/head
Nathaniel Catchpole 2019-03-18 16:19:42 +00:00
parent befdca5584
commit d297e2340b
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ trait FieldUiTestTrait {
* settings' form). * settings' form).
*/ */
public function fieldUIAddNewField($bundle_path, $field_name, $label = NULL, $field_type = 'test_field', array $storage_edit = [], array $field_edit = []) { public function fieldUIAddNewField($bundle_path, $field_name, $label = NULL, $field_type = 'test_field', array $storage_edit = [], array $field_edit = []) {
$label = $label ?: $this->randomString(); // Generate a label containing only letters and numbers to prevent random
// test failure.
// See https://www.drupal.org/project/drupal/issues/3030902
$label = $label ?: $this->randomMachineName();
$initial_edit = [ $initial_edit = [
'new_storage_type' => $field_type, 'new_storage_type' => $field_type,
'label' => $label, 'label' => $label,