function UpdateTestBase::assertUpdateTableTextNotContains

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

Asserts that the update table text does not contain the specified text.

Parameters

string $text: The expected text.

3 calls to UpdateTestBase::assertUpdateTableTextNotContains()
UpdateSemverTestBase::testMajorUpdateAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when a major update is available.
UpdateSemverTestBase::testNormalUpdateAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when one normal update is available.
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 238

Class

UpdateTestBase
Defines some shared functions used by all update tests.

Namespace

Drupal\Tests\update\Functional

Code

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

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