function FileSystemTempDirectoryTest::testGetTempDirectorySettings
Tests 'file_temp_path' setting.
@covers ::getTempDirectory
      
    
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ File/ FileSystemTempDirectoryTest.php, line 47 
Class
- FileSystemTempDirectoryTest
- Tests for getTempDirectory on FileSystem.
Namespace
Drupal\KernelTests\Core\FileCode
public function testGetTempDirectorySettings() {
  $tempDir = '/var/tmp/' . $this->randomMachineName();
  $this->setSetting('file_temp_path', $tempDir);
  $this->assertEquals($tempDir, $this->fileSystem
    ->getTempDirectory());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
