You are here

protected function InstallerTestBase::setUpRequirementsProblem in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php \Drupal\FunctionalTests\Installer\InstallerTestBase::setUpRequirementsProblem()
  2. 9 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
Verifies that Drupal can't be reinstalled while an existing installation is available.
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 268

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',
    ]);
  }
}