diff --git a/core/modules/system/tests/modules/common_test/common_test.routing.yml b/core/modules/system/tests/modules/common_test/common_test.routing.yml index 576a448..f3ad504 100644 --- a/core/modules/system/tests/modules/common_test/common_test.routing.yml +++ b/core/modules/system/tests/modules/common_test/common_test.routing.yml @@ -7,6 +7,7 @@ common_test_l_active_class: common_test_js_and_css_querystring: pattern: 'common-test/query-string' defaults: + _title: 'Test querystring' _content: '\Drupal\common_test\Controller\CommonTestController::jsAndCssQuerystring' requirements: _permission: 'access content' diff --git a/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestController.php b/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestController.php index 32279af..dd75381 100644 --- a/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestController.php +++ b/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestController.php @@ -63,8 +63,6 @@ public function typeLinkActiveClass() { * Adds a JavaScript file and a CSS file with a query string appended. */ public function jsAndCssQuerystring() { - drupal_set_title('Test querystring'); - drupal_add_library('system', 'drupalSettings'); drupal_add_js(drupal_get_path('module', 'node') . '/node.js'); drupal_add_css(drupal_get_path('module', 'node') . '/css/node.admin.css');