X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsettings_tray%2Ftests%2Fsrc%2FFunctional%2FOffCanvasDialogTest.php;fp=web%2Fcore%2Fmodules%2Fsettings_tray%2Ftests%2Fsrc%2FFunctional%2FOffCanvasDialogTest.php;h=0000000000000000000000000000000000000000;hp=bebfccfda38ec0a2fdfae73ee73b231ab1a799c6;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/settings_tray/tests/src/Functional/OffCanvasDialogTest.php b/web/core/modules/settings_tray/tests/src/Functional/OffCanvasDialogTest.php deleted file mode 100644 index bebfccfda..000000000 --- a/web/core/modules/settings_tray/tests/src/Functional/OffCanvasDialogTest.php +++ /dev/null @@ -1,63 +0,0 @@ -drupalLogin($this->drupalCreateUser(['administer contact forms'])); - // Ensure the elements render without notices or exceptions. - $this->drupalGet('ajax-test/dialog'); - - // Set up variables for this test. - $dialog_renderable = AjaxTestController::dialogContents(); - $dialog_contents = \Drupal::service('renderer')->renderRoot($dialog_renderable); - - $off_canvas_expected_response = [ - 'command' => 'openDialog', - 'selector' => '#drupal-off-canvas', - 'settings' => NULL, - 'data' => $dialog_contents, - 'dialogOptions' => - [ - 'title' => 'AJAX Dialog & contents', - 'modal' => FALSE, - 'autoResize' => FALSE, - 'resizable' => 'w', - 'draggable' => FALSE, - 'drupalAutoButtons' => FALSE, - 'buttons' => [], - 'dialogClass' => 'ui-dialog-off-canvas', - 'width' => 300, - ], - 'effect' => 'fade', - 'speed' => 1000, - ]; - - // Emulate going to the JS version of the page and check the JSON response. - $ajax_result = $this->drupalGet('ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog.off_canvas']]); - $ajax_result = Json::decode($ajax_result); - $this->assertEqual($off_canvas_expected_response, $ajax_result[3], 'off-canvas dialog JSON response matches.'); - } - -}