Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.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 |
line wrap: on
line diff
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -2,7 +2,6 @@ namespace Drupal\Tests\taxonomy\Functional; -use Drupal\Component\Utility\Unicode; use Drupal\field\Entity\FieldConfig; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\field\Entity\FieldStorageConfig; @@ -144,12 +143,12 @@ public function testUninstallReinstall() { // Field storages and fields attached to taxonomy term bundles should be // removed when the module is uninstalled. - $field_name = Unicode::strtolower($this->randomMachineName() . '_field_name'); + $field_name = mb_strtolower($this->randomMachineName() . '_field_name'); $storage_definition = [ 'field_name' => $field_name, 'entity_type' => 'taxonomy_term', 'type' => 'text', - 'cardinality' => 4 + 'cardinality' => 4, ]; FieldStorageConfig::create($storage_definition)->save(); $field_definition = [ @@ -165,7 +164,7 @@ // installed for testing below. $this->vocabulary->unsetThirdPartySetting('taxonomy_crud', 'foo'); - require_once \Drupal::root() . '/core/includes/install.inc'; + require_once $this->root . '/core/includes/install.inc'; $this->container->get('module_installer')->uninstall(['taxonomy']); $this->container->get('module_installer')->install(['taxonomy']);