comparison core/tests/Drupal/FunctionalTests/FolderTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
1 <?php
2
3 namespace Drupal\FunctionalTests;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8 * This test will check BrowserTestBase's treatment of hook_install during
9 * setUp.
10 * Image module is used for test.
11 *
12 * @group browsertestbase
13 */
14 class FolderTest extends BrowserTestBase {
15
16 /**
17 * Modules to enable.
18 *
19 * @var array
20 */
21 public static $modules = ['image'];
22
23 public function testFolderSetup() {
24 $directory = file_default_scheme() . '://styles';
25 $this->assertTrue(\Drupal::service('file_system')->prepareDirectory($directory, FALSE), 'Directory created.');
26 }
27
28 }