forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
34 lines
628 B
PHP
34 lines
628 B
PHP
<?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.');
|
|
}
|
|
|
|
}
|