function RequirementsPageTrait::updateRequirementsProblem

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
  2. 10 core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()
  3. 11.x core/tests/Drupal/Tests/RequirementsPageTrait.php \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem()

Handles the update requirements page.

18 calls to RequirementsPageTrait::updateRequirementsProblem()
DbUpdatesTrait::applyUpdates in core/modules/system/tests/src/Functional/Update/DbUpdatesTrait.php
Applies any pending DB updates through the Update UI.
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
Test the system module updates with no dependencies installed.

... See full list

File

core/tests/Drupal/Tests/RequirementsPageTrait.php, line 13

Class

RequirementsPageTrait
Provides helper methods for the requirements page.

Namespace

Drupal\Tests

Code

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->assertNoText('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.