diff -u b/src/FeaturesConfigInstaller.php b/src/FeaturesConfigInstaller.php --- b/src/FeaturesConfigInstaller.php +++ b/src/FeaturesConfigInstaller.php @@ -56,7 +56,8 @@ StorageInterface $active_storage, TypedConfigManagerInterface $typed_config, ConfigManagerInterface $config_manager, - EventDispatcherInterface $event_dispatcher) { + EventDispatcherInterface $event_dispatcher + ) { $this->configInstaller = $config_installer; $this->featuresManager = $features_manager; only in patch2: unchanged: --- a/tests/src/Unit/FeaturesManagerTest.php +++ b/tests/src/Unit/FeaturesManagerTest.php @@ -78,6 +78,12 @@ class FeaturesManagerTest extends UnitTestCase { public function setUp() { parent::setUp(); + $container = new ContainerBuilder(); + $container->set('string_translation', $this->getStringTranslationStub()); + $container->set('app.root', $this->root); + $container->setParameter('install_profile', ''); + \Drupal::setContainer($container); + $entity_type = $this->getMock('\Drupal\Core\Config\Entity\ConfigEntityTypeInterface'); $entity_type->expects($this->any()) ->method('getConfigPrefix') @@ -106,12 +112,6 @@ class FeaturesManagerTest extends UnitTestCase { ->method('revert') ->willReturn(true); $this->featuresManager = new FeaturesManager($this->root, $this->entityManager, $this->configFactory, $this->configStorage, $this->configManager, $this->moduleHandler, $this->configReverter); - - $string_translation = $this->getStringTranslationStub(); - $container = new ContainerBuilder(); - $container->set('string_translation', $string_translation); - $container->set('app.root', $this->root); - \Drupal::setContainer($container); } /**