FolderTest.php
Same filename in other branches
Namespace
Drupal\FunctionalTestsFile
-
core/
tests/ Drupal/ FunctionalTests/ FolderTest.php
View source
<?php
namespace Drupal\FunctionalTests;
use Drupal\Tests\BrowserTestBase;
/**
* Tests BrowserTestBase's treatment of hook_install() during setup.
*
* Image module is used for test.
*
* @group browsertestbase
*/
class FolderTest extends BrowserTestBase {
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = [
'image',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
public function testFolderSetup() {
$directory = 'public://styles';
$this->assertTrue(\Drupal::service('file_system')->prepareDirectory($directory, FALSE), 'Directory created.');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FolderTest | Tests BrowserTestBase's treatment of hook_install() during setup. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.