function RequirementsPageTrait::updateRequirementsProblem
Same name in other branches
- 9 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
- 8.9.x core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
- 11.x core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
Handles the update requirements page.
21 calls to RequirementsPageTrait::updateRequirementsProblem()
- EquivalentUpdateTest::testModuleUninstall in core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ EquivalentUpdateTest.php - Tests that module uninstall removes skipped update information.
- EquivalentUpdateTest::testUpdateHooks in core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ EquivalentUpdateTest.php - Tests that update hooks are properly run.
- 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.
- MaintenanceThemeUpdateRegistryTest::testMaintenanceThemeUpdateRegistration in core/
modules/ system/ tests/ src/ Functional/ Theme/ MaintenanceThemeUpdateRegistryTest.php - Tests that after installing the profile there are no outstanding updates.
File
-
core/
tests/ Drupal/ Tests/ RequirementsPageTrait.php, line 17
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',
]);
// Get the default Drupal core PHP requirements.
if ($links && version_compare(phpversion(), PhpRequirements::getMinimumSupportedPhp()) < 0) {
$this->assertSession()
->pageTextNotContains('Errors found');
$this->assertWarningSummaries([
'PHP',
]);
$this->clickLink('try again');
$this->checkForMetaRefresh();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.