diff --git a/core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php b/core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php new file mode 100644 index 0000000000..65762f91b9 --- /dev/null +++ b/core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php @@ -0,0 +1,51 @@ +expectedDeprecations(['Install profile will be a mandatory parameter in Drupal 9.0.']); + } + $config_storage = $this->prophesize(StorageInterface::class)->reveal(); + $container = new ContainerBuilder(); + $container->setParameter('install_profile', $container_profile); + \Drupal::setContainer($container); + new ExtensionInstallStorage($config_storage, ExtensionInstallStorage::CONFIG_INSTALL_DIRECTORY, ExtensionInstallStorage::DEFAULT_COLLECTION, TRUE, $profile); + $this->addToAssertionCount(1); + } + + /** + * Data provider for ::testProfileDeprecation + */ + public function providerTestProfileDeprecation() { + return [ + 'both null' => [NULL, NULL], + 'constructor null' => [NULL, 'test', TRUE], + 'constructor null' => ['test', 'test'], + ]; + } + +}