Commit d95b4d72 authored by catch's avatar catch

Issue #3057294 by alexpott: Remove unnecessary usage of Unicode::check() in tests

parent dafc72c9
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
namespace Drupal\KernelTests\Core\Routing; namespace Drupal\KernelTests\Core\Routing;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Cache\MemoryBackend; use Drupal\Core\Cache\MemoryBackend;
use Drupal\Core\Database\Database; use Drupal\Core\Database\Database;
use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Core\DependencyInjection\ContainerBuilder;
...@@ -221,12 +220,6 @@ public function providerMixedCaseRoutePaths() { ...@@ -221,12 +220,6 @@ public function providerMixedCaseRoutePaths() {
* @dataProvider providerMixedCaseRoutePaths * @dataProvider providerMixedCaseRoutePaths
*/ */
public function testMixedCasePaths($path, $expected_route_name, $method = 'GET') { public function testMixedCasePaths($path, $expected_route_name, $method = 'GET') {
// The case-insensitive behavior for higher UTF-8 characters depends on
// 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();
$connection = Database::getConnection(); $connection = Database::getConnection();
$provider = new RouteProvider($connection, $this->state, $this->currentPath, $this->cache, $this->pathProcessor, $this->cacheTagsInvalidator, 'test_routes'); $provider = new RouteProvider($connection, $this->state, $this->currentPath, $this->cache, $this->pathProcessor, $this->cacheTagsInvalidator, 'test_routes');
...@@ -271,13 +264,6 @@ public function providerDuplicateRoutePaths() { ...@@ -271,13 +264,6 @@ public function providerDuplicateRoutePaths() {
* @dataProvider providerDuplicateRoutePaths * @dataProvider providerDuplicateRoutePaths
*/ */
public function testDuplicateRoutePaths($path, $number, $expected_route_name = NULL) { public function testDuplicateRoutePaths($path, $number, $expected_route_name = NULL) {
// The case-insensitive behavior for higher UTF-8 characters depends on
// 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();
$connection = Database::getConnection(); $connection = Database::getConnection();
$provider = new RouteProvider($connection, $this->state, $this->currentPath, $this->cache, $this->pathProcessor, $this->cacheTagsInvalidator, 'test_routes'); $provider = new RouteProvider($connection, $this->state, $this->currentPath, $this->cache, $this->pathProcessor, $this->cacheTagsInvalidator, 'test_routes');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment