You are here

protected function HtaccessTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/File/HtaccessTest.php \Drupal\KernelTests\Core\File\HtaccessTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/File/HtaccessTest.php, line 39

Class

HtaccessTest
Tests .htaccess file saving.

Namespace

Drupal\KernelTests\Core\File

Code

protected function setUp() {
  parent::setUp();
  $this->public = Settings::get('file_public_path') . '/test/public';
  $this->htaccessWriter = $this->container
    ->get('file.htaccess_writer');
}