function RequirementsPageTrait::assertWarningSummaries

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertWarningSummaries()
  2. 10 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertWarningSummaries()
  3. 11.x core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertWarningSummaries()

Asserts the given warning summaries are present on the page.

If an expected warning is not found, or if a warning not in the list is present, a fail is raised.

Parameters

string[] $summaries: A list of warning summaries to expect on the requirements screen (e.g. 'PHP', 'PHP OPcode caching', etc.).

2 calls to RequirementsPageTrait::assertWarningSummaries()
RequirementsPageTrait::continueOnExpectedWarnings in core/tests/Drupal/Tests/RequirementsPageTrait.php
Continues installation when the expected warnings are found.
RequirementsPageTrait::updateRequirementsProblem in core/tests/Drupal/Tests/RequirementsPageTrait.php
Handles the update requirements page.

File

core/tests/Drupal/Tests/RequirementsPageTrait.php, line 55

Class

RequirementsPageTrait
Provides helper methods for the requirements page.

Namespace

Drupal\Tests

Code

protected function assertWarningSummaries(array $summaries) {
    $this->assertRequirementSummaries($summaries, 'warning');
}

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