public function BrowserTestBase::assertSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/BrowserTestBase.php \Drupal\simpletest\BrowserTestBase::assertSession()
Returns WebAssert object.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Drupal\simpletest\WebAssert A new web-assert option for asserting the presence of elements with.
2 calls to BrowserTestBase::assertSession()
- BrowserTestBase::drupalLogout in core/
modules/ simpletest/ src/ BrowserTestBase.php - Logs a user out of the Mink controlled browser and confirms.
- BrowserTestBase::submitForm in core/
modules/ simpletest/ src/ BrowserTestBase.php - Fills and submits a form.
File
- core/
modules/ simpletest/ src/ BrowserTestBase.php, line 438 - Contains \Drupal\simpletest\BrowserTestBase.
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\simpletestCode
public function assertSession($name = NULL) {
return new WebAssert($this
->getSession($name));
}