function AssertLegacyTrait::assertSession

Same name in other branches
  1. 8.9.x 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 906

Class

AssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\FunctionalTests

Code

public abstract function assertSession($name = NULL);

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