You are here

protected function BaseThemeMissingTest::setUpFilesystem in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php \Drupal\KernelTests\Core\Theme\BaseThemeMissingTest::setUpFilesystem()

File

core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php, line 53

Class

BaseThemeMissingTest
Tests the behavior of a theme when base_theme info key is missing.

Namespace

Drupal\KernelTests\Core\Theme

Code

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