You are here

protected function ExtensionSerializationTest::setUp in Drupal 8

Same name and namespace 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()

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'),
        ],
      ],
    ],
  ]);
}