function UpdateTestBase::assertUpdateTableElementContains
Same name in other branches
- 9 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementContains()
- 8.9.x core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementContains()
- 10 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementContains()
Asserts that the update table element HTML contains the specified text.
Parameters
string $text: The expected text.
See also
\Behat\Mink\WebAssert::elementContains()
2 calls to UpdateTestBase::assertUpdateTableElementContains()
- UpdateTestBase::confirmRevokedStatus in core/
modules/ update/ tests/ src/ Functional/ UpdateTestBase.php - Confirms messages are correct when a release has been unpublished/revoked.
- UpdateTestBase::confirmUnsupportedStatus in core/
modules/ update/ tests/ src/ Functional/ UpdateTestBase.php - Confirms messages are correct when a release has been marked unsupported.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateTestBase.php, line 267
Class
- UpdateTestBase
- Defines some shared functions used by all update tests.
Namespace
Drupal\Tests\update\FunctionalCode
protected function assertUpdateTableElementContains($text) {
$this->assertSession()
->elementContains('css', $this->updateTableLocator, $text);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.