protected function FileLogSettingsTest::setUp in File Log 2.0.x
Throws
\Drupal\Core\Entity\EntityStorageException
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ FileLogSettingsTest.php, line 48
Class
- FileLogSettingsTest
- Test the filelog settings form.
Namespace
Drupal\Tests\filelog\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Check that the log directory and .htaccess are created on install.
$logPath = $this
->config('filelog.settings')
->get('location');
static::assertStringEqualsFile("{$logPath}/.htaccess", FileSecurity::htaccessLines(), '.htaccess file written correctly on install.');
$this->adminUser = $this
->createUser([
'administer site configuration',
]);
}