function RequirementsPageTrait::assertErrorSummaries
Same name in other branches
- 9 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertErrorSummaries()
- 10 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::assertErrorSummaries()
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 71
Class
- RequirementsPageTrait
- Provides helper methods for the requirements page.
Namespace
Drupal\TestsCode
protected function assertErrorSummaries(array $summaries) {
$this->assertRequirementSummaries($summaries, 'error');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.