X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FRouting%2FRouteProviderTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FRouting%2FRouteProviderTest.php;h=713eb3cd1ee44f0dcbe3fba3ac6c3ed601632a54;hp=c11b23d20df2960d13cfbf498619882988f4ce83;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/web/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php index c11b23d20..713eb3cd1 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php @@ -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();