LegacyJavascriptTestBase.php 477 B

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