Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/FunctionalJavascriptTests/LegacyJavascriptTestBase.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\FunctionalJavascriptTests; | |
4 | |
5 use Zumba\Mink\Driver\PhantomJSDriver; | |
6 | |
7 /** | |
8 * Runs a browser test using PhantomJS. | |
9 * | |
10 * Base class for testing browser interaction implemented in JavaScript. | |
11 */ | |
12 abstract class LegacyJavascriptTestBase extends JavascriptTestBase { | |
13 | |
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 } |