7cef5b8c6c37436e8c66bf2d981765bd7779bc43
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / LegacyJavascriptTestBase.php
1 <?php
2
3 namespace Drupal\FunctionalJavascriptTests;
4
5 /**
6  * Runs a browser test using PhantomJS.
7  *
8  * Base class for testing browser interaction implemented in JavaScript.
9  */
10 abstract class LegacyJavascriptTestBase extends JavascriptTestBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function assertSession($name = NULL) {
16     // Return a WebAssert that supports status code and header assertions.
17     return new JSWebAssert($this->getSession($name), $this->baseUrl);
18   }
19
20 }