function SitesDirectoryHardeningTest::checkSystemRequirements
Same name in other branches
- 9 core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php \Drupal\Tests\system\Functional\System\SitesDirectoryHardeningTest::checkSystemRequirements()
- 10 core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php \Drupal\Tests\system\Functional\System\SitesDirectoryHardeningTest::checkSystemRequirements()
- 11.x core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php \Drupal\Tests\system\Functional\System\SitesDirectoryHardeningTest::checkSystemRequirements()
Checks system runtime requirements.
Return value
array An array of system requirements.
2 calls to SitesDirectoryHardeningTest::checkSystemRequirements()
- SitesDirectoryHardeningTest::testSitesDirectoryHardening in core/
modules/ system/ tests/ src/ Functional/ System/ SitesDirectoryHardeningTest.php - Tests the default behavior to restrict directory permissions is enforced.
- SitesDirectoryHardeningTest::testSitesDirectoryHardeningConfig in core/
modules/ system/ tests/ src/ Functional/ System/ SitesDirectoryHardeningTest.php - Tests writable files remain writable when directory hardening is disabled.
File
-
core/
modules/ system/ tests/ src/ Functional/ System/ SitesDirectoryHardeningTest.php, line 94
Class
- SitesDirectoryHardeningTest
- Tests Drupal permissions hardening of /sites subdirectories.
Namespace
Drupal\Tests\system\Functional\SystemCode
protected function checkSystemRequirements() {
module_load_install('system');
return system_requirements('runtime');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.