public function FileSystemRequirementsTest::testSettingsExist in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php \Drupal\KernelTests\Core\File\FileSystemRequirementsTest::testSettingsExist()
- 10 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\FileCode
public function testSettingsExist() {
$this
->setSetting('file_temp_path', $this
->randomMachineName());
$requirements = $this
->checkSystemRequirements();
$this
->assertArrayNotHasKey('temp_directory', $requirements);
}