comparison 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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\FunctionalJavascriptTests; 3 namespace Drupal\FunctionalJavascriptTests;
4 4
5 use Zumba\Mink\Driver\PhantomJSDriver;
6
7 /** 5 /**
8 * Runs a browser test using PhantomJS. 6 * Runs a browser test using PhantomJS.
9 * 7 *
10 * Base class for testing browser interaction implemented in JavaScript. 8 * @deprecated in Drupal 8.6.0, will be removed before Drupal 9.0.0.
9 * Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead
10 *
11 * BC layer for testing browser interaction implemented in JavaScript.
11 */ 12 */
12 abstract class LegacyJavascriptTestBase extends JavascriptTestBase { 13 abstract class LegacyJavascriptTestBase extends JavascriptTestBase {
13 14
14 /**
15 * {@inheritdoc}
16 */
17 protected $minkDefaultDriverClass = PhantomJSDriver::class;
18
19 /**
20 * {@inheritdoc}
21 */
22 public function assertSession($name = NULL) {
23 // Return a WebAssert that supports status code and header assertions.
24 return new JSWebAssert($this->getSession($name), $this->baseUrl);
25 }
26
27 } 15 }