You are here

public function StockWebDriverTestBase::assertSession in Commerce Stock 8

Return value

\Drupal\FunctionalJavascriptTests\JSWebAssert A new web-assert option for asserting the presence of elements with.

Overrides WebDriverTestBase::assertSession

File

tests/src/FunctionalJavascript/StockWebDriverTestBase.php, line 186

Class

StockWebDriverTestBase
Defines base class for commerce stock test cases.

Namespace

Drupal\Tests\commerce_stock\FunctionalJavascript

Code

public function assertSession($name = NULL) {
  return new JSWebAssert($this
    ->getSession($name), $this->baseUrl);
}