public function UiHelperTrait::assertSession in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::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.
167 calls to UiHelperTrait::assertSession()
- AggregatorDisplayConfigurableTest::testFeedDisplayConfigurable in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorDisplayConfigurableTest.php - Sets feed base fields to configurable display and checks settings are respected.
- AggregatorDisplayConfigurableTest::testItemDisplayConfigurable in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorDisplayConfigurableTest.php - Sets item base fields to configurable display and checks settings are respected.
- BlockContentReusableUpdateTest::testReusableFieldAddition in core/
modules/ block_content/ tests/ src/ Functional/ Update/ BlockContentReusableUpdateTest.php - Tests adding 'reusable' entity base field to the block content entity type.
- BooleanFormatterSettingsTest::testBooleanFormatterSettings in core/
modules/ field/ tests/ src/ Functional/ Boolean/ BooleanFormatterSettingsTest.php - Tests the formatter settings page for the Boolean formatter.
- BreadcrumbFrontCacheContextsTest::testBreadcrumbsFrontPageCache in core/
modules/ system/ tests/ src/ Functional/ Menu/ BreadcrumbFrontCacheContextsTest.php - Validate that breadcrumb markup get the right cache contexts.
1 method overrides UiHelperTrait::assertSession()
- WebDriverTestBase::assertSession in core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php - Returns WebAssert object.
File
- core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 290
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
public function assertSession($name = NULL) {
$this
->addToAssertionCount(1);
return new WebAssert($this
->getSession($name), $this->baseUrl);
}