Index: drupal/core/modules/system/tests/modules/form_test/form_test.routing.yml =================================================================== --- drupal/core/modules/system/tests/modules/form_test/form_test.routing.yml (revision cd15b235db7353771053ad56018e4a65abffdd6f) +++ drupal/core/modules/system/tests/modules/form_test/form_test.routing.yml (revision ) @@ -46,3 +46,11 @@ _form: '\Drupal\form_test\ConfirmFormArrayPathTestForm' requirements: _access: 'TRUE' + +form_test.route8: + pattern: '/form-test/wrapper-callback' + defaults: + _content: '\Drupal\form_test\Controller\FormTestController::testWrapper' + form_id: form_test_wrapper_callback_form + requirements: + _access: 'TRUE' Index: drupal/core/modules/system/lib/Drupal/system/Tests/Form/WrapperTest.php =================================================================== --- drupal/core/modules/system/lib/Drupal/system/Tests/Form/WrapperTest.php (revision cd15b235db7353771053ad56018e4a65abffdd6f) +++ drupal/core/modules/system/lib/Drupal/system/Tests/Form/WrapperTest.php (revision ) @@ -33,7 +33,7 @@ * Tests using the form in a usual way. */ function testWrapperCallback() { - $this->drupalGet('form_test/wrapper-callback'); + $this->drupalGet('form-test/wrapper-callback'); $this->assertText('Form wrapper callback element output.', 'The form contains form wrapper elements.'); $this->assertText('Form builder element output.', 'The form contains form builder elements.'); } Index: drupal/core/modules/system/tests/modules/form_test/form_test.module =================================================================== --- drupal/core/modules/system/tests/modules/form_test/form_test.module (revision cd15b235db7353771053ad56018e4a65abffdd6f) +++ drupal/core/modules/system/tests/modules/form_test/form_test.module (revision ) @@ -119,9 +119,7 @@ $items['form_test/wrapper-callback'] = array( 'title' => 'Form wrapper callback test', - 'page callback' => 'form_test_wrapper_callback', - 'page arguments' => array('form_test_wrapper_callback_form'), - 'access callback' => TRUE, + 'route_name' => 'form_test.route8', 'type' => MENU_CALLBACK, ); Index: drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Controller/FormTestController.php =================================================================== --- drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Controller/FormTestController.php (revision ) +++ drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Controller/FormTestController.php (revision ) @@ -0,0 +1,17 @@ + array('args' => array()), + 'wrapper_callback' => 'form_test_wrapper_callback_wrapper', + ); + return drupal_build_form($form_id, $form_state); + } + +} \ No newline at end of file Index: drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/ConfirmFormArrayPathTestForm.php =================================================================== --- drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/ConfirmFormArrayPathTestForm.php (revision cd15b235db7353771053ad56018e4a65abffdd6f) +++ drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/ConfirmFormArrayPathTestForm.php (revision ) @@ -38,4 +38,6 @@ return t('ConfirmFormArrayPathTestForm::getCancelText().'); } + + }