diff --git a/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php b/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php index bf3205c..bb73472 100644 --- a/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php +++ b/core/modules/system/src/Tests/Installer/DistributionProfileExistingSettingsTest.php @@ -128,7 +128,7 @@ public function testInstalled() { $this->rebuildContainer(); $this->pass('Container can be rebuilt even though distribution is not written to settings.php.'); - // Create another installation profile which is a distrubtion. + // Create another installation profile which is a distribution. $info = [ 'type' => 'profile', 'core' => \Drupal::CORE_COMPATIBILITY, @@ -145,6 +145,11 @@ public function testInstalled() { mkdir($path, 0777, TRUE); file_put_contents("$path/mydistro2.info.yml", Yaml::encode($info)); + // Ensure that no install profile is configured yet. + \Drupal::configFactory()->getEditable('core.extension') + ->set('profile', NULL) + ->save(); + // Test that a site will multiple distributions will get an exception when // rebuilding the container. In order to do this we need to reset the // discovered files in ExtensionDiscovery. diff --git a/core/tests/Drupal/Tests/Core/Extension/DefaultConfigTest.php b/core/tests/Drupal/Tests/Core/Extension/DefaultConfigTest.php index 879e7a0..56f913a 100644 --- a/core/tests/Drupal/Tests/Core/Extension/DefaultConfigTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/DefaultConfigTest.php @@ -27,6 +27,7 @@ public function testConfigIsEmpty() { $expected = array( 'module' => array(), 'theme' => array(), + 'profile' => '', ); $this->assertEquals($expected, $config); }