Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\FunctionalJavascriptTests; | 3 namespace Drupal\FunctionalJavascriptTests; |
4 | |
5 use Zumba\Mink\Driver\PhantomJSDriver; | |
4 | 6 |
5 /** | 7 /** |
6 * Runs a browser test using PhantomJS. | 8 * Runs a browser test using PhantomJS. |
7 * | 9 * |
8 * Base class for testing browser interaction implemented in JavaScript. | 10 * Base class for testing browser interaction implemented in JavaScript. |
10 abstract class LegacyJavascriptTestBase extends JavascriptTestBase { | 12 abstract class LegacyJavascriptTestBase extends JavascriptTestBase { |
11 | 13 |
12 /** | 14 /** |
13 * {@inheritdoc} | 15 * {@inheritdoc} |
14 */ | 16 */ |
17 protected $minkDefaultDriverClass = PhantomJSDriver::class; | |
18 | |
19 /** | |
20 * {@inheritdoc} | |
21 */ | |
15 public function assertSession($name = NULL) { | 22 public function assertSession($name = NULL) { |
16 // Return a WebAssert that supports status code and header assertions. | 23 // Return a WebAssert that supports status code and header assertions. |
17 return new JSWebAssert($this->getSession($name), $this->baseUrl); | 24 return new JSWebAssert($this->getSession($name), $this->baseUrl); |
18 } | 25 } |
19 | 26 |