function SiteFilesExcluderTest::testInvalidFileSettings
Same name and namespace in other branches
- 11.x core/modules/package_manager/tests/src/Kernel/PathExcluder/SiteFilesExcluderTest.php \Drupal\Tests\package_manager\Kernel\PathExcluder\SiteFilesExcluderTest::testInvalidFileSettings()
Tests that invalid file settings do not cause errors.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PathExcluder/ SiteFilesExcluderTest.php, line 68
Class
- SiteFilesExcluderTest
- Tests Site Files Excluder.
Namespace
Drupal\Tests\package_manager\Kernel\PathExcluderCode
public function testInvalidFileSettings() : void {
$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([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.