function InstallerTestBase::setUpRequirementsProblem

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::setUpRequirementsProblem()
  2. 8.9.x core/modules/simpletest/src/InstallerTestBase.php \Drupal\simpletest\InstallerTestBase::setUpRequirementsProblem()
  3. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::setUpRequirementsProblem()
  4. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::setUpRequirementsProblem()

Installer step: Requirements problem.

Override this method to test specific requirements warnings or errors during the installer.

See also

system_requirements()

2 calls to InstallerTestBase::setUpRequirementsProblem()
InstallerExistingInstallationTest::testInstaller in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingInstallationTest.php
Tests that Drupal fails to install when there is an existing installation.
InstallerTestBase::setUp in core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php
6 methods override InstallerTestBase::setUpRequirementsProblem()
InstallerConfigDirectorySetNoDirectoryErrorTest::setUpRequirementsProblem in core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php
Installer step: Requirements problem.
InstallerExistingBrokenDatabaseSettingsTest::setUpRequirementsProblem in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingBrokenDatabaseSettingsTest.php
Installer step: Requirements problem.
InstallerExistingConfigProfileHookInstall::setUpRequirementsProblem in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
Installer step: Requirements problem.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpRequirementsProblem in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
Installer step: Requirements problem.
InstallerProfileRequirementsTest::setUpRequirementsProblem in core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php
Installer step: Requirements problem.

... See full list

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php, line 276

Class

InstallerTestBase
Base class for testing the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpRequirementsProblem() {
    if (version_compare(phpversion(), PhpRequirements::getMinimumSupportedPhp()) < 0) {
        $this->continueOnExpectedWarnings([
            'PHP',
        ]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.