FolderTest.php in Drupal 10
File
core/tests/Drupal/FunctionalTests/FolderTest.php
View source
<?php
namespace Drupal\FunctionalTests;
use Drupal\Tests\BrowserTestBase;
class FolderTest extends BrowserTestBase {
protected static $modules = [
'image',
];
protected $defaultTheme = 'stark';
public function testFolderSetup() {
$directory = 'public://styles';
$this
->assertTrue(\Drupal::service('file_system')
->prepareDirectory($directory, FALSE), 'Directory created.');
}
}
Classes
Name |
Description |
FolderTest |
This test will check BrowserTestBase's treatment of hook_install during
setUp.
Image module is used for test. |