You are here

protected function UpdateTestBase::assertUpdateTableTextContains in Drupal 8

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

2 calls to UpdateTestBase::assertUpdateTableTextContains()
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 259

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\Tests\update\Functional

Code

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