diff core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php	Thu Feb 28 13:21:36 2019 +0000
@@ -2,26 +2,14 @@
 
 namespace Drupal\FunctionalJavascriptTests;
 
-use Zumba\Mink\Driver\PhantomJSDriver;
-
 /**
  * Runs a browser test using PhantomJS.
  *
- * Base class for testing browser interaction implemented in JavaScript.
+ * @deprecated in Drupal 8.6.0, will be removed before Drupal 9.0.0.
+ * Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead
+ *
+ * BC layer for testing browser interaction implemented in JavaScript.
  */
 abstract class LegacyJavascriptTestBase extends JavascriptTestBase {
 
-  /**
-   * {@inheritdoc}
-   */
-  protected $minkDefaultDriverClass = PhantomJSDriver::class;
-
-  /**
-   * {@inheritdoc}
-   */
-  public function assertSession($name = NULL) {
-    // Return a WebAssert that supports status code and header assertions.
-    return new JSWebAssert($this->getSession($name), $this->baseUrl);
-  }
-
 }