function PasswordTestBase::checkSystemRequirements
Checks system runtime requirements.
Return value
array An array of system requirements.
3 calls to PasswordTestBase::checkSystemRequirements()
- PasswordRequirementsBcryptTest::testRequirementsWithBcrypt in core/
tests/ Drupal/ KernelTests/ Core/ Password/ PasswordRequirementsBcryptTest.php - Tests that password hashing generates an info requirement by default.
- PasswordRequirementsDefaultTest::testRequirementsWithDefaults in core/
tests/ Drupal/ KernelTests/ Core/ Password/ PasswordRequirementsDefaultTest.php - Tests that password hashing generates an info requirement by default.
- PasswordRequirementsUnknownTest::testRequirementsWithUnknownAlgorithm in core/
tests/ Drupal/ KernelTests/ Core/ Password/ PasswordRequirementsUnknownTest.php - Tests that password hashing generates an info requirement by default.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Password/ PasswordTestBase.php, line 45
Class
- PasswordTestBase
- Integration tests for the PHP password hashing service.
Namespace
Drupal\KernelTests\Core\PasswordCode
protected function checkSystemRequirements() {
// This loadInclude() is to ensure that the install API is available.
// Since we're loading an include of type 'install', this will also
// include core/includes/install.inc for us, which is where
// drupal_verify_install_file() is currently defined.
// @todo Remove this once the function lives in a better place.
// @see https://www.drupal.org/project/drupal/issues/3526388
$this->container
->get('module_handler')
->loadInclude('system', 'install');
return \Drupal::moduleHandler()->invoke('system', 'runtime_requirements');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.