function FileSecurityTest::testWriteWebConfigFailure
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/FileSecurity/FileSecurityTest.php \Drupal\Tests\Component\FileSecurity\FileSecurityTest::testWriteWebConfigFailure()
- 8.9.x core/tests/Drupal/Tests/Component/FileSecurity/FileSecurityTest.php \Drupal\Tests\Component\FileSecurity\FileSecurityTest::testWriteWebConfigFailure()
@covers ::writeWebConfig
File
-
core/
tests/ Drupal/ Tests/ Component/ FileSecurity/ FileSecurityTest.php, line 93
Class
- FileSecurityTest
- Tests the file security component.
Namespace
Drupal\Tests\Component\FileSecurityCode
public function testWriteWebConfigFailure() : void {
vfsStream::setup('root');
$this->assertFalse(FileSecurity::writeWebConfig(vfsStream::url('root') . '/foo'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.