public function UiHelperTrait::assertSession in Drupal 9
Same name and namespace in other branches
- 8 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.
176 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.
- BlockUiTest::testBrokenBlockVisibility in core/
modules/ block/ tests/ src/ Functional/ BlockUiTest.php - Tests that users without permission are not able to view broken blocks.
- 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 297
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);
}