function ExtensionSerializationTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionSerializationTest.php \Drupal\Tests\Core\Extension\ExtensionSerializationTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionSerializationTest.php \Drupal\Tests\Core\Extension\ExtensionSerializationTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Extension/ExtensionSerializationTest.php \Drupal\Tests\Core\Extension\ExtensionSerializationTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Extension/ExtensionSerializationTest.php, line 21

Class

ExtensionSerializationTest
Tests Extension serialization.

Namespace

Drupal\Tests\Core\Extension

Code

protected function setUp() {
    parent::setUp();
    vfsStream::setup('dummy_app_root');
    vfsStream::create([
        'core' => [
            'modules' => [
                'system' => [
                    'system.info.yml' => file_get_contents($this->root . '/core/modules/system/system.info.yml'),
                ],
            ],
        ],
    ]);
}

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