You are here

protected function SitesDirectoryHardeningTest::checkSystemRequirements in Drupal 8

Same name and namespace in other branches
  1. 9 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\System

Code

protected function checkSystemRequirements() {
  module_load_install('system');
  return system_requirements('runtime');
}