Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / LegacyJavascriptTestBase.php
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 }