3 namespace Drupal\Tests\Core\Extension;
5 use Drupal\Tests\UnitTestCase;
6 use Symfony\Component\Yaml\Yaml;
9 * Tests default configuration of the Extension system.
13 class DefaultConfigTest extends UnitTestCase {
16 * Tests that core.extension.yml is empty by default.
18 * The default configuration MUST NOT specify any extensions, because every
19 * extension has to be installed in a regular way.
21 * Otherwise, the regular runtime application would operate with extensions
22 * that were never installed. The default configuration of such extensions
23 * would not exist. Installation hooks would never be executed.
25 public function testConfigIsEmpty() {
26 $config = Yaml::parse(file_get_contents($this->root . '/core/config/install/core.extension.yml'));
32 $this->assertEquals($expected, $config);