diff --git a/core/modules/system/tests/modules/ajax_test/ajax_test.module b/core/modules/system/tests/modules/ajax_test/ajax_test.module index 67a9340..3d01f2a 100644 --- a/core/modules/system/tests/modules/ajax_test/ajax_test.module +++ b/core/modules/system/tests/modules/ajax_test/ajax_test.module @@ -35,6 +35,10 @@ function ajax_test_menu() { 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); + $items['ajax-test/dialog'] = array( + 'title' => 'AJAX Dialog', + 'route_name' => 'ajax_test_dialog', + ); $items['ajax-test/dialog-close'] = array( 'title' => 'AJAX Dialog close', 'page callback' => 'ajax_test_dialog_close', diff --git a/core/modules/system/tests/modules/ajax_test/lib/Drupal/ajax_test/AjaxTestController.php b/core/modules/system/tests/modules/ajax_test/lib/Drupal/ajax_test/AjaxTestController.php index 461316d..54b877a 100644 --- a/core/modules/system/tests/modules/ajax_test/lib/Drupal/ajax_test/AjaxTestController.php +++ b/core/modules/system/tests/modules/ajax_test/lib/Drupal/ajax_test/AjaxTestController.php @@ -25,8 +25,6 @@ public function dialogContents() { * Renders a form elements and links with #ajax['dialog']. */ public function dialog() { - drupal_set_title('AJAX Dialog'); - // Add two wrapper elements for testing non-modal dialogs. Modal dialogs use // the global drupal-modal wrapper by default. $build['dialog_wrappers'] = array('#markup' => '
');