function FileSystemTempDirectoryTest::testGetTempDirectoryOsDefault
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php \Drupal\KernelTests\Core\File\FileSystemTempDirectoryTest::testGetTempDirectoryOsDefault()
- 8.9.x core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php \Drupal\KernelTests\Core\File\FileSystemTempDirectoryTest::testGetTempDirectoryOsDefault()
- 10 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 57
Class
- FileSystemTempDirectoryTest
- Tests for getTempDirectory on FileSystem.
Namespace
Drupal\KernelTests\Core\FileCode
public function testGetTempDirectoryOsDefault() : void {
$tempDir = FileSystemComponent::getOsTemporaryDirectory();
$dir = $this->fileSystem
->getTempDirectory();
$this->assertEquals($tempDir, $dir);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.