You are here

public function ExtensionInstallStorageTest::testProfileDeprecation in Drupal 8

@covers ::__construct @group legacy @dataProvider providerTestProfileDeprecation @expectedDeprecation All \Drupal\Core\Config\ExtensionInstallStorage::__construct() arguments will be required in drupal:9.0.0. See https://www.drupal.org/node/2538996

File

core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php, line 27

Class

ExtensionInstallStorageTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function testProfileDeprecation($container_profile) {
  $config_storage = $this
    ->prophesize(StorageInterface::class)
    ->reveal();
  $container = new ContainerBuilder();
  $container
    ->setParameter('install_profile', $container_profile);
  \Drupal::setContainer($container);
  $storage = new TestExtensionInstallStorage($config_storage);
  $this
    ->assertSame($container_profile, $storage
    ->getProfile());
}