protected function RequirementsPageTrait::updateRequirementsProblem in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
Handles the update requirements page.
17 calls to RequirementsPageTrait::updateRequirementsProblem()
- InvalidUpdateHookTest::testInvalidUpdateHook in core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ InvalidUpdateHookTest.php - LocaleTranslatedSchemaDefinitionTest::testTranslatedUpdate in core/
modules/ locale/ tests/ src/ Functional/ LocaleTranslatedSchemaDefinitionTest.php - Tests that translations do not affect the update system.
- MinimalTest::testMinimal in core/
profiles/ minimal/ tests/ src/ Functional/ MinimalTest.php - Tests Minimal installation profile.
- NoPreExistingSchemaUpdateTest::testNoPreExistingSchema in core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ NoPreExistingSchemaUpdateTest.php - Tests the system module updates with no dependencies installed.
- StandardTest::testStandard in core/
profiles/ standard/ tests/ src/ Functional/ StandardTest.php - Tests Standard installation profile.
File
- core/
tests/ Drupal/ Tests/ RequirementsPageTrait.php, line 13
Class
- RequirementsPageTrait
- Provides helper methods for the requirements page.
Namespace
Drupal\TestsCode
protected function updateRequirementsProblem() {
// Assert a warning is shown on older test environments.
$links = $this
->getSession()
->getPage()
->findAll('named', [
'link',
'try again',
]);
if ($links && version_compare(phpversion(), \Drupal::MINIMUM_SUPPORTED_PHP) < 0) {
$this
->assertSession()
->pageTextNotContains('Errors found');
$this
->assertWarningSummaries([
'PHP',
]);
$this
->clickLink('try again');
$this
->checkForMetaRefresh();
}
}