You are here

public function StreamWrapperTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php \Drupal\KernelTests\Core\File\StreamWrapperTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php \Drupal\KernelTests\Core\File\StreamWrapperTest::setUp()

Overrides FileTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php, line 40

Class

StreamWrapperTest
Tests stream wrapper functions.

Namespace

Drupal\KernelTests\Core\File

Code

public function setUp() : void {
  parent::setUp();

  // Add file_private_path setting.
  $request = Request::create('/');
  $site_path = DrupalKernel::findSitePath($request);
  $this
    ->setSetting('file_private_path', $site_path . '/private');
}