From 21011ec37a3cfc13c8f4fd40f1234014ac0dba4a Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Mon, 18 Mar 2019 16:19:42 +0000 Subject: [PATCH] =?UTF-8?q?Issue=20#3030902=20by=20Krzysztof=20Doma=C5=84s?= =?UTF-8?q?ki,=20amateescu,=20xjm:=20Random=20fail=20in=20EntityReferenceA?= =?UTF-8?q?dminTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8d89da6bc788684a5ffd032334a0ceea06ec85b8) --- core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php b/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php index 52e75cfc9897..de125d185465 100644 --- a/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php +++ b/core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php @@ -27,7 +27,10 @@ trait FieldUiTestTrait { * settings' form). */ 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 = [ 'new_storage_type' => $field_type, 'label' => $label, -- GitLab