Mercurial > hg > isophonics-drupal-site
diff core/modules/datetime/src/Tests/DateTestBase.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/datetime/src/Tests/DateTestBase.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/datetime/src/Tests/DateTestBase.php Thu Feb 28 13:21:36 2019 +0000 @@ -4,7 +4,6 @@ @trigger_error('\Drupal\datetime\Tests\DateTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\BrowserTestBase instead. See https://www.drupal.org/node/2780063.', E_USER_DEPRECATED); -use Drupal\Component\Utility\Unicode; use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\datetime\Plugin\Field\FieldType\DateTimeItem; @@ -111,7 +110,7 @@ * Creates a date test field. */ protected function createField() { - $field_name = Unicode::strtolower($this->randomMachineName()); + $field_name = mb_strtolower($this->randomMachineName()); $type = $this->getTestFieldType(); $widget_type = $formatter_type = $type . '_default';