abstract public function AssertLegacyTrait::assertSession in Drupal 8
Same name and namespace 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);