function BaseThemeDefaultDeprecationTest::setUpFilesystem

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.