JavascriptTestBase.php in Drupal 8
File
core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php
View source
<?php
namespace Drupal\FunctionalJavascriptTests;
@trigger_error('The ' . __NAMESPACE__ . '\\JavascriptTestBase is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.0. Instead, use ' . __NAMESPACE__ . '\\WebDriverTestBase. See https://www.drupal.org/node/2945059', E_USER_DEPRECATED);
use Zumba\Mink\Driver\PhantomJSDriver;
abstract class JavascriptTestBase extends WebDriverTestBase {
protected $minkDefaultDriverClass = PhantomJSDriver::class;
public function assertSession($name = NULL) {
return new JSWebAssert($this
->getSession($name), $this->baseUrl);
}
}