You are here

protected function HtaccessTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/File/HtaccessTest.php \Drupal\KernelTests\Core\File\HtaccessTest::setUp()
  2. 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() : void {
  parent::setUp();
  $this->public = Settings::get('file_public_path') . '/test/public';
  $this->htaccessWriter = $this->container
    ->get('file.htaccess_writer');
}