function JavascriptTestBase::assertSession

Overrides WebDriverTestBase::assertSession

File

core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php, line 31

Class

JavascriptTestBase
Runs a browser test using PhantomJS.

Namespace

Drupal\FunctionalJavascriptTests

Code

public function assertSession($name = NULL) {
    // Return a WebAssert that supports status code and header assertions.
    return new JSWebAssert($this->getSession($name), $this->baseUrl);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.