You are here

public function FolderTest::testFolderSetup in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/FolderTest.php \Drupal\FunctionalTests\FolderTest::testFolderSetup()

File

core/tests/Drupal/FunctionalTests/FolderTest.php, line 28

Class

FolderTest
This test will check BrowserTestBase's treatment of hook_install during setUp. Image module is used for test.

Namespace

Drupal\FunctionalTests

Code

public function testFolderSetup() {
  $directory = 'public://styles';
  $this
    ->assertTrue(\Drupal::service('file_system')
    ->prepareDirectory($directory, FALSE), 'Directory created.');
}