You are here

function StreamWrapperTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/File/StreamWrapperTest.php \Drupal\system\Tests\File\StreamWrapperTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides FileTestBase::setUp

File

core/modules/system/src/Tests/File/StreamWrapperTest.php, line 43
Contains \Drupal\system\Tests\File\StreamWrapperTest.

Class

StreamWrapperTest
Tests stream wrapper functions.

Namespace

Drupal\system\Tests\File

Code

function setUp() {

  // Add file_private_path setting.
  $settings = Settings::getAll();
  $request = Request::create('/');
  $site_path = DrupalKernel::findSitePath($request);
  $settings['file_private_path'] = $site_path . '/private';
  new Settings($settings + Settings::getAll());
  parent::setUp();
}