Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / outside_in / src / Tests / Ajax / OffCanvasDialogTest.php
diff --git a/web/core/modules/outside_in/src/Tests/Ajax/OffCanvasDialogTest.php b/web/core/modules/outside_in/src/Tests/Ajax/OffCanvasDialogTest.php
deleted file mode 100644 (file)
index e2b451e..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace Drupal\outside_in\Tests\Ajax;
-
-use Drupal\ajax_test\Controller\AjaxTestController;
-use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
-use Drupal\system\Tests\Ajax\AjaxTestBase;
-
-/**
- * Performs tests on opening and manipulating dialogs via AJAX commands.
- *
- * @group outside_in
- */
-class OffCanvasDialogTest extends AjaxTestBase {
-
-  /**
-   * Modules to enable.
-   *
-   * @var array
-   */
-  public static $modules = ['outside_in'];
-
-  /**
-   * Test sending AJAX requests to open and manipulate off-canvas dialog.
-   */
-  public function testDialog() {
-    $this->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' => [],
-          'width' => 300,
-        ],
-      'effect' => 'fade',
-      'speed' => 1000,
-    ];
-
-    // Emulate going to the JS version of the page and check the JSON response.
-    $ajax_result = $this->drupalGetAjax('ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog_off_canvas']]);
-    $this->assertEqual($off_canvas_expected_response, $ajax_result[3], 'off-canvas dialog JSON response matches.');
-  }
-
-}