public function FileSecurityTest::testWriteWebConfigFailure in Drupal 9
Same name and namespace in other branches
- 8 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 91
Class
- FileSecurityTest
- Tests the file security component.
Namespace
Drupal\Tests\Component\FileSecurityCode
public function testWriteWebConfigFailure() {
vfsStream::setup('root');
$this
->assertFalse(FileSecurity::writeWebConfig(vfsStream::url('root') . '/foo'));
}