Skip to content
Snippets Groups Projects

Issue #3424290 check if file settings path exist

1 unresolved thread
@@ -55,4 +55,18 @@ class SiteFilesExcluderTest extends PackageManagerKernelTestBase {
}
}
/**
* Tests that invalid file settings do not cause errors.
*/
public function testInvalidFileSettings() {
$invalid_path = '/path/does/not/exist';
$this->assertFileDoesNotExist($invalid_path);
$this->setSetting('file_public_path', $invalid_path);
$this->setSetting('file_private_path', $invalid_path);
// Ensure we have an up-to-date container.
$this->container = $this->container->get('kernel')->rebuildContainer();
$this->assertStatusCheckResults([]);
$this->assertResults([]);
}
}
Loading