function FileSystemRequirementsTest::checkSystemRequirements
Checks system runtime requirements.
Return value
array An array of system requirements.
1 call to FileSystemRequirementsTest::checkSystemRequirements()
- FileSystemRequirementsTest::testSettingsExist in core/
tests/ Drupal/ KernelTests/ Core/ File/ FileSystemRequirementsTest.php - Tests if settings are set, there are not warnings.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ FileSystemRequirementsTest.php, line 51
Class
- FileSystemRequirementsTest
- Tests File System Requirements.
Namespace
Drupal\KernelTests\Core\FileCode
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.