class ModuleInstallerDeprecationTest
@group legacy
@group extension
@coversDefaultClass \Drupal\Core\Extension\ModuleInstaller
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Extension\ModuleInstallerDeprecationTest implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of ModuleInstallerDeprecationTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleInstallerDeprecationTest.php, line 15
Namespace
Drupal\KernelTests\Core\ExtensionView source
class ModuleInstallerDeprecationTest extends KernelTestBase {
/**
* @covers ::__construct
*/
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.