You are here

public function FileSystemRequirementsTest::testSettingsExist in Drupal 9

Same name and namespace in other branches
  1. 8 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()

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);
}