projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
datetime
/
tests
/
src
/
Functional
/
DateTestBase.php
diff --git
a/web/core/modules/datetime/tests/src/Functional/DateTestBase.php
b/web/core/modules/datetime/tests/src/Functional/DateTestBase.php
index 369e793343d4ee115a0bbbbe9c53e7580484bc0d..9127eb25d461a40157a78dc2ec82ca24bc31b42f 100644
(file)
--- 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());
*/
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';
$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,
$this->fieldStorage->save();
$this->field = FieldConfig::create([
'field_storage' => $this->fieldStorage,
+ 'label' => $field_label,
'bundle' => 'entity_test',
'bundle' => 'entity_test',
- 'description' => 'Description for ' . $field_
name
,
+ 'description' => 'Description for ' . $field_
label
,
'required' => TRUE,
]);
$this->field->save();
'required' => TRUE,
]);
$this->field->save();