function AssertLegacyTrait::assertSession
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertSession()
Returns WebAssert object.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Drupal\Tests\WebAssert A new web-assert option for asserting the presence of elements with.
1 method overrides AssertLegacyTrait::assertSession()
- AssertLegacyTraitTest::assertSession in core/
tests/ Drupal/ Tests/ Core/ Assert/ AssertLegacyTraitTest.php - Returns WebAssert object.
File
-
core/
tests/ Drupal/ FunctionalTests/ AssertLegacyTrait.php, line 760
Class
- AssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\FunctionalTestsCode
public abstract function assertSession($name = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.