function UpdateTestBase::assertUpdateTableElementNotContains

Same name in other branches
  1. 10 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementNotContains()
  2. 11.x core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::assertUpdateTableElementNotContains()

Asserts that the update table element HTML contains the specified text.

Parameters

string $text: The expected text.

See also

\Behat\Mink\WebAssert::elementNotContains()

1 call to UpdateTestBase::assertUpdateTableElementNotContains()
UpdateSemverTestBase::testNoUpdatesAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when no updates are available.

File

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

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\Tests\update\Functional

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.