function SiteFilesExcluderTest::testInvalidFileSettings

Tests that invalid file settings do not cause errors.

File

core/modules/package_manager/tests/src/Kernel/PathExcluder/SiteFilesExcluderTest.php, line 61

Class

SiteFilesExcluderTest
@covers \Drupal\package_manager\PathExcluder\SiteFilesExcluder[[api-linebreak]] @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Kernel\PathExcluder

Code

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.