diff --git a/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php b/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php index 59b2fb3..57a5a08 100644 --- a/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php +++ b/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php @@ -18,7 +18,9 @@ use Symfony\Component\Routing\RouteCollection; // Needed because the Entity class calls it. -define('LANGUAGE_NOT_SPECIFIED', 'und'); +if (!defined('LANGUAGE_NOT_SPECIFIED')) { + define('LANGUAGE_NOT_SPECIFIED', 'und'); +} /** * Defines tests for role based access in routes. @@ -77,7 +79,7 @@ protected function getTestRouteCollection() { } /** - * Tests role requirements on routes. + * Provides data for the role access test. */ public function testRoleAccessProvider() { // Setup two different roles used in the test. @@ -124,6 +126,8 @@ public function accountsToDeny($grant_users) { } /** + * Tests role requirements on routes. + * * @dataProvider testRoleAccessProvider */ public function testRoleAccess($path, $grant_accounts) { @@ -149,4 +153,5 @@ public function testRoleAccess($path, $grant_accounts) { $this->assertEmpty($has_access , $message); } } + }