You are here

protected function RequirementsPageTrait::assertWarningSummaries in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertWarningSummaries()
  2. 9 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.).

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');
}