You are here

protected function UpdateTestBase::assertUpdateTableElementContains in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementContains()
  2. 9 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()

File

core/modules/update/tests/src/Functional/UpdateTestBase.php, line 250

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\Tests\update\Functional

Code

protected function assertUpdateTableElementContains($text) {
  $this
    ->assertSession()
    ->elementContains('css', $this->updateTableLocator, $text);
}