Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d95b4d72
Commit
d95b4d72
authored
Jun 10, 2019
by
catch
Browse files
Issue
#3057294
by alexpott: Remove unnecessary usage of Unicode::check() in tests
parent
dafc72c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
View file @
d95b4d72
...
...
@@ -7,7 +7,6 @@
namespace
Drupal\KernelTests\Core\Routing
;
use
Drupal\Component\Utility\Unicode
;
use
Drupal\Core\Cache\MemoryBackend
;
use
Drupal\Core\Database\Database
;
use
Drupal\Core\DependencyInjection\ContainerBuilder
;
...
...
@@ -221,12 +220,6 @@ public function providerMixedCaseRoutePaths() {
* @dataProvider providerMixedCaseRoutePaths
*/
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
();
$provider
=
new
RouteProvider
(
$connection
,
$this
->
state
,
$this
->
currentPath
,
$this
->
cache
,
$this
->
pathProcessor
,
$this
->
cacheTagsInvalidator
,
'test_routes'
);
...
...
@@ -271,13 +264,6 @@ public function providerDuplicateRoutePaths() {
* @dataProvider providerDuplicateRoutePaths
*/
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
();
$provider
=
new
RouteProvider
(
$connection
,
$this
->
state
,
$this
->
currentPath
,
$this
->
cache
,
$this
->
pathProcessor
,
$this
->
cacheTagsInvalidator
,
'test_routes'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment