function HtaccessTest::testHtaccessSaveDisabled
@covers ::write
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ HtaccessTest.php, line 97
Class
- HtaccessTest
- Tests .htaccess file saving.
Namespace
Drupal\KernelTests\Core\FileCode
public function testHtaccessSaveDisabled() : void {
$this->setSetting('auto_create_htaccess', FALSE);
$this->assertTrue($this->htaccessWriter
->write($this->public, FALSE));
$this->assertFileDoesNotExist($this->public . '/.htaccess');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.