Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / LegacyJavascriptTestBase.php
diff --git a/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php b/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php
new file mode 100644 (file)
index 0000000..7cef5b8
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\FunctionalJavascriptTests;
+
+/**
+ * Runs a browser test using PhantomJS.
+ *
+ * Base class for testing browser interaction implemented in JavaScript.
+ */
+abstract class LegacyJavascriptTestBase extends JavascriptTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function assertSession($name = NULL) {
+    // Return a WebAssert that supports status code and header assertions.
+    return new JSWebAssert($this->getSession($name), $this->baseUrl);
+  }
+
+}