Skip to content
Snippets Groups Projects

Issue #3278411: Always use FileSystemInterface::getTempDirectory() to get the temporary directory

Merged Issue #3278411: Always use FileSystemInterface::getTempDirectory() to get the temporary directory
1 unresolved thread
1 unresolved thread
@@ -70,8 +70,8 @@ class StageTest extends PackageManagerKernelTestBase {
$this->assertEmpty(Settings::get('file_temp_path'));
$expected_dir = FileSystem::getOsTemporaryDirectory() . "/.package_manager$site_id/$id";
$this->assertSame($expected_dir, $stage->getStageDirectory());
// If the file_temp_path setting is changed, the existing stage should be
// unaffected...
// If the file_temp_path setting is changed, the existing stage shouldn't be
// affected...
$this->setSetting('file_temp_path', '/junk/drawer');
$this->assertSame($expected_dir, $stage->getStageDirectory());
$stage->destroy();
Loading