Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Routing / RouteProviderTest.php
index c11b23d20df2960d13cfbf498619882988f4ce83..713eb3cd1ee44f0dcbe3fba3ac6c3ed601632a54 100644 (file)
@@ -12,7 +12,6 @@ use Drupal\Core\Cache\MemoryBackend;
 use Drupal\Core\Database\Database;
 use Drupal\Core\DependencyInjection\ContainerBuilder;
 use Drupal\Core\KeyValueStore\KeyValueMemoryFactory;
-use Drupal\Core\Lock\NullLockBackend;
 use Drupal\Core\Path\CurrentPathStack;
 use Drupal\Core\Routing\MatcherDumper;
 use Drupal\Core\Routing\RouteProvider;
@@ -84,7 +83,7 @@ class RouteProviderTest extends KernelTestBase {
   protected function setUp() {
     parent::setUp();
     $this->fixtures = new RoutingFixtures();
-    $this->state = new State(new KeyValueMemoryFactory(), new MemoryBackend('test'), new NullLockBackend());
+    $this->state = new State(new KeyValueMemoryFactory());
     $this->currentPath = new CurrentPathStack(new RequestStack());
     $this->cache = new MemoryBackend();
     $this->pathProcessor = \Drupal::service('path_processor_manager');
@@ -97,7 +96,7 @@ class RouteProviderTest extends KernelTestBase {
   public function register(ContainerBuilder $container) {
     parent::register($container);
 
-    // Readd the incoming path alias for these tests.
+    // Read the incoming path alias for these tests.
     if ($container->hasDefinition('path_processor_alias')) {
       $definition = $container->getDefinition('path_processor_alias');
       $definition->addTag('path_processor_inbound');
@@ -223,7 +222,7 @@ class RouteProviderTest extends KernelTestBase {
    */
   public function testMixedCasePaths($path, $expected_route_name, $method = 'GET') {
     // The case-insensitive behavior for higher UTF-8 characters depends on
-    // \Drupal\Component\Utility\Unicode::strtolower() using mb_strtolower()
+    // mb_strtolower() using mb_strtolower()
     // but kernel tests do not currently run the check that enables it.
     // @todo remove this when https://www.drupal.org/node/2849669 is fixed.
     Unicode::check();
@@ -274,7 +273,7 @@ class RouteProviderTest extends KernelTestBase {
   public function testDuplicateRoutePaths($path, $number, $expected_route_name = NULL) {
 
     // The case-insensitive behavior for higher UTF-8 characters depends on
-    // \Drupal\Component\Utility\Unicode::strtolower() using mb_strtolower()
+    // mb_strtolower() using mb_strtolower()
     // but kernel tests do not currently run the check that enables it.
     // @todo remove this when https://www.drupal.org/node/2849669 is fixed.
     Unicode::check();