protected function RequirementsPageTrait::assertErrorSummaries in Drupal 10
Asserts the given error summaries are present on the page.
If an expected error is not found, or if an error not in the list is present, a fail is raised.
Parameters
string[] $summaries: A list of error summaries to expect on the requirements screen (e.g. 'PHP', 'PHP OPcode caching', etc.).
1 call to RequirementsPageTrait::assertErrorSummaries()
- PhpRequirementTest::testStatusPage in core/
modules/ system/ tests/ src/ Functional/ System/ PhpRequirementTest.php - Tests status report messages regarding the PHP version.
File
- core/
tests/ Drupal/ Tests/ RequirementsPageTrait.php, line 69
Class
- RequirementsPageTrait
- Provides helper methods for the requirements page.
Namespace
Drupal\TestsCode
protected function assertErrorSummaries(array $summaries) {
$this
->assertRequirementSummaries($summaries, 'error');
}