Mercurial > hg > isophonics-drupal-site
diff core/modules/views/tests/src/Functional/DefaultViewsTest.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/views/tests/src/Functional/DefaultViewsTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -4,15 +4,14 @@ use Drupal\comment\CommentInterface; use Drupal\comment\Tests\CommentTestTrait; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Url; -use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait; use Drupal\views\Views; use Drupal\comment\Entity\Comment; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; +use Drupal\Tests\field\Traits\EntityReferenceTestTrait; /** * Tests the default views provided by views. @@ -53,7 +52,7 @@ $vocabulary = Vocabulary::create([ 'name' => $this->randomMachineName(), 'description' => $this->randomMachineName(), - 'vid' => Unicode::strtolower($this->randomMachineName()), + 'vid' => mb_strtolower($this->randomMachineName()), 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED, 'help' => '', 'nodes' => ['page' => 'page'], @@ -62,7 +61,7 @@ $vocabulary->save(); // Create a field. - $field_name = Unicode::strtolower($this->randomMachineName()); + $field_name = mb_strtolower($this->randomMachineName()); $handler_settings = [ 'target_bundles' => [ @@ -97,7 +96,7 @@ 'status' => CommentInterface::PUBLISHED, 'entity_id' => $node->id(), 'entity_type' => 'node', - 'field_name' => 'comment' + 'field_name' => 'comment', ]; Comment::create($comment)->save();