protected function UpdateTestBase::assertUpdateTableTextContains in Drupal 10
Same name and namespace in other branches
- 8 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableTextContains()
- 9 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableTextContains()
Asserts that the update table text contains the specified text.
Parameters
string $text: The expected text.
See also
\Behat\Mink\WebAssert::elementTextContains()
File
- core/
modules/ update/ tests/ src/ Functional/ UpdateTestBase.php, line 227
Class
- UpdateTestBase
- Defines some shared functions used by all update tests.
Namespace
Drupal\Tests\update\FunctionalCode
protected function assertUpdateTableTextContains($text) {
$this
->assertSession()
->elementTextContains('css', $this->updateTableLocator, $text);
}