comparison core/modules/field/tests/src/Functional/TranslationWebTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\Tests\field\Functional; 3 namespace Drupal\Tests\field\Functional;
4 4
5 use Drupal\Component\Utility\Unicode;
6 use Drupal\field\Entity\FieldStorageConfig; 5 use Drupal\field\Entity\FieldStorageConfig;
7 use Drupal\field\Entity\FieldConfig; 6 use Drupal\field\Entity\FieldConfig;
8 use Drupal\language\Entity\ConfigurableLanguage; 7 use Drupal\language\Entity\ConfigurableLanguage;
9 8
10 /** 9 /**
50 protected $field; 49 protected $field;
51 50
52 protected function setUp() { 51 protected function setUp() {
53 parent::setUp(); 52 parent::setUp();
54 53
55 $this->fieldName = Unicode::strtolower($this->randomMachineName() . '_field_name'); 54 $this->fieldName = mb_strtolower($this->randomMachineName() . '_field_name');
56 55
57 $field_storage = [ 56 $field_storage = [
58 'field_name' => $this->fieldName, 57 'field_name' => $this->fieldName,
59 'entity_type' => $this->entityTypeId, 58 'entity_type' => $this->entityTypeId,
60 'type' => 'test_field', 59 'type' => 'test_field',