protected function RequirementsPageTrait::assertWarningSummaries in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertWarningSummaries()
- 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\TestsCode
protected function assertWarningSummaries(array $summaries) {
$this
->assertRequirementSummaries($summaries, 'warning');
}