function ExtensionInstallStorageTest::testProfileDeprecation
@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\ConfigCode
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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.