function BaseThemeMissingTest::setUpFilesystem
Overrides KernelTestBase::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\ThemeCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.