LegacyJavascriptTestBase.php 611 B

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