function WebAssertTest::assertSession
Same name in other branches
- 11.x core/tests/Drupal/Tests/Core/Test/WebAssertTest.php \Drupal\Tests\Core\Test\WebAssertTest::assertSession()
Get the mocked session.
2 calls to WebAssertTest::assertSession()
- WebAssertTest::testEscapingAssertions in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests assertEscaped() and assertUnescaped().
- WebAssertTest::testPageContainsNoDuplicateId in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests pageContainsNoDuplicateId() functionality.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php, line 50
Class
- WebAssertTest
- Tests WebAssert functionality.
Namespace
Drupal\Tests\Core\TestCode
protected function assertSession() : WebAssert {
return new WebAssert($this->session);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.