public function FileSystemTempDirectoryTest::testGetTempDirectoryOsDefault in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php \Drupal\KernelTests\Core\File\FileSystemTempDirectoryTest::testGetTempDirectoryOsDefault()
Tests os default fallback.
@covers ::getTempDirectory
File
- core/
tests/ Drupal/ KernelTests/ Core/ File/ FileSystemTempDirectoryTest.php, line 58
Class
- FileSystemTempDirectoryTest
- Tests for getTempDirectory on FileSystem.
Namespace
Drupal\KernelTests\Core\FileCode
public function testGetTempDirectoryOsDefault() {
$tempDir = FileSystemComponent::getOsTemporaryDirectory();
$dir = $this->fileSystem
->getTempDirectory();
$this
->assertEquals($tempDir, $dir);
}