function FolderTest::testFolderSetup
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/FolderTest.php \Drupal\FunctionalTests\FolderTest::testFolderSetup()
- 8.9.x core/tests/Drupal/FunctionalTests/FolderTest.php \Drupal\FunctionalTests\FolderTest::testFolderSetup()
- 10 core/tests/Drupal/FunctionalTests/FolderTest.php \Drupal\FunctionalTests\FolderTest::testFolderSetup()
File
-
core/
tests/ Drupal/ FunctionalTests/ FolderTest.php, line 28
Class
- FolderTest
- Tests BrowserTestBase's treatment of hook_install() during setup.
Namespace
Drupal\FunctionalTestsCode
public function testFolderSetup() : void {
$directory = 'public://styles';
$this->assertTrue(\Drupal::service('file_system')->prepareDirectory($directory, FALSE), 'Directory created.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.