You are here

protected function BaseThemeDefaultDeprecationTest::setUpFilesystem in Drupal 8

Sets up the filesystem, so things like the file directory.

Overrides KernelTestBase::setUpFilesystem

File

core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php, line 62

Class

BaseThemeDefaultDeprecationTest
Tests the behavior of the Stable theme.

Namespace

Drupal\KernelTests\Core\Theme

Code

protected function setUpFilesystem() {
  parent::setUpFilesystem();
  $vfs_root = vfsStream::setup('core');
  vfsStream::create([
    'themes' => [
      'test_stable' => [
        'test_stable.info.yml' => file_get_contents(DRUPAL_ROOT . '/core/tests/fixtures/test_stable/test_stable.info.yml'),
        'test_stable.theme' => file_get_contents(DRUPAL_ROOT . '/core/tests/fixtures/test_stable/test_stable.theme'),
      ],
      'stable' => [
        'stable.info.yml' => file_get_contents(DRUPAL_ROOT . '/core/themes/stable/stable.info.yml'),
        'stable.theme' => file_get_contents(DRUPAL_ROOT . '/core/themes/stable/stable.theme'),
      ],
    ],
  ], $vfs_root);
}