X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FLegacyJavascriptTestBase.php;fp=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FLegacyJavascriptTestBase.php;h=70869d08b4e156a0297c0cbbd451c145b4d1383d;hp=b3baf6e2d377b6793728bfb1dd70394215f7ee07;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php b/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php index b3baf6e2d..70869d08b 100644 --- a/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php +++ b/web/core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php @@ -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); - } - }