public function AssertLegacyTraitTest::assertSession in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php \Drupal\Tests\Core\Assert\AssertLegacyTraitTest::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.
Overrides AssertLegacyTrait::assertSession
File
- core/
tests/ Drupal/ Tests/ Core/ Assert/ AssertLegacyTraitTest.php, line 194
Class
- AssertLegacyTraitTest
- @coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait @group Assert @group legacy
Namespace
Drupal\Tests\Core\AssertCode
public function assertSession($name = NULL) {
return $this->webAssert
->reveal();
}