function ModuleInstallerDeprecationTest::testConstructorDeprecation
@covers ::__construct
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleInstallerDeprecationTest.php, line 20
Class
- ModuleInstallerDeprecationTest
- @group legacy @group extension @coversDefaultClass \Drupal\Core\Extension\ModuleInstaller
Namespace
Drupal\KernelTests\Core\ExtensionCode
public function testConstructorDeprecation() {
$this->expectDeprecation('Calling ' . ModuleInstaller::class . '::__construct() without the $update_registry argument is deprecated in drupal:9.3.0 and $update_registry argument will be required in drupal:10.0.0. See https://www.drupal.org/node/2124069');
$root = '';
$module_handler = $this->prophesize(ModuleHandlerInterface::class);
$kernel = $this->prophesize(DrupalKernelInterface::class);
$this->assertNotNull(new ModuleInstaller($root, $module_handler->reveal(), $kernel->reveal()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.