X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fdatetime%2Ftests%2Fsrc%2FFunctional%2FDateTestBase.php;h=9127eb25d461a40157a78dc2ec82ca24bc31b42f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=369e793343d4ee115a0bbbbe9c53e7580484bc0d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/datetime/tests/src/Functional/DateTestBase.php b/web/core/modules/datetime/tests/src/Functional/DateTestBase.php index 369e79334..9127eb25d 100644 --- a/web/core/modules/datetime/tests/src/Functional/DateTestBase.php +++ b/web/core/modules/datetime/tests/src/Functional/DateTestBase.php @@ -107,6 +107,7 @@ abstract class DateTestBase extends BrowserTestBase { */ protected function createField() { $field_name = Unicode::strtolower($this->randomMachineName()); + $field_label = Unicode::ucfirst(Unicode::strtolower($this->randomMachineName())); $type = $this->getTestFieldType(); $widget_type = $formatter_type = $type . '_default'; @@ -119,8 +120,9 @@ abstract class DateTestBase extends BrowserTestBase { $this->fieldStorage->save(); $this->field = FieldConfig::create([ 'field_storage' => $this->fieldStorage, + 'label' => $field_label, 'bundle' => 'entity_test', - 'description' => 'Description for ' . $field_name, + 'description' => 'Description for ' . $field_label, 'required' => TRUE, ]); $this->field->save();