function FileSystemRequirementsTest::testSettingsExist

Same name in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php \Drupal\KernelTests\Core\File\FileSystemRequirementsTest::testSettingsExist()
  2. 10 core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php \Drupal\KernelTests\Core\File\FileSystemRequirementsTest::testSettingsExist()
  3. 11.x core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php \Drupal\KernelTests\Core\File\FileSystemRequirementsTest::testSettingsExist()

Tests if settings are set, there are not warnings.

File

core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php, line 35

Class

FileSystemRequirementsTest
@group File

Namespace

Drupal\KernelTests\Core\File

Code

public function testSettingsExist() {
    $this->setSetting('file_temp_path', $this->randomMachineName());
    $requirements = $this->checkSystemRequirements();
    $this->assertArrayNotHasKey('temp_directory', $requirements);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.