Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / src / Kernel / Entity / ViewEntityDependenciesTest.php
index 24cd1162c5f6cd03fa0e58899784d41999a19556..34f58122cafb799541c8077cb8afc2cf4e5fe0e1 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\views\Kernel\Entity;
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\field\Entity\FieldConfig;
 use Drupal\field\Entity\FieldStorageConfig;
 use Drupal\node\Entity\NodeType;
@@ -56,7 +55,7 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
     ]);
     $content_type->save();
     $field_storage = FieldStorageConfig::create([
-      'field_name' => Unicode::strtolower($this->randomMachineName()),
+      'field_name' => mb_strtolower($this->randomMachineName()),
       'entity_type' => 'node',
       'type' => 'comment',
     ]);
@@ -90,7 +89,7 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
         'comment',
         'node',
         'user',
-      ]
+      ],
     ];
     // Tests dependencies of relationships.
     $expected['test_relationship_dependency'] = [
@@ -98,7 +97,7 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
         'comment',
         'node',
         'user',
-      ]
+      ],
     ];
     $expected['test_plugin_dependencies'] = [
       'module' => [
@@ -109,24 +108,24 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
         'RowTest',
         'StaticTest',
         'StyleTest',
-      ]
+      ],
     ];
 
     $expected['test_argument_dependency'] = [
       'config' => [
         'core.entity_view_mode.node.teaser',
-        'field.storage.node.body'
+        'field.storage.node.body',
       ],
       'content' => [
         'ArgumentDefaultTest',
-        'ArgumentValidatorTest'
+        'ArgumentValidatorTest',
       ],
       'module' => [
         'node',
         // The argument handler is provided by the search module.
         'search',
         'text',
-        'user'
+        'user',
       ],
     ];
 
@@ -146,25 +145,25 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
       ],
       'content' => [
         'ArgumentDefaultTest',
-        'ArgumentValidatorTest'
+        'ArgumentValidatorTest',
       ],
       'module' => [
         'core',
         'node',
         'search',
         'user',
-        'views'
+        'views',
       ],
     ];
     $expected_display['page'] = [
       'config' => [
-        'field.storage.node.body'
+        'field.storage.node.body',
       ],
       'module' => [
         'core',
         'node',
         'text',
-        'views'
+        'views',
       ],
     ];