protected function ModuleRequiredByThemesUninstallValidatorTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php \Drupal\Tests\Core\Extension\ModuleRequiredByThemesUninstallValidatorTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ModuleRequiredByThemesUninstallValidatorTest.php, line 40
Class
- ModuleRequiredByThemesUninstallValidatorTest
- @coversDefaultClass \Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
protected function setUp() : void {
parent::setUp();
$this->moduleExtensionList = $this
->prophesize(ModuleExtensionList::class);
$this->themeExtensionList = $this
->prophesize(ThemeExtensionList::class);
$this->moduleRequiredByThemeUninstallValidator = new ModuleRequiredByThemesUninstallValidator($this
->getStringTranslationStub(), $this->moduleExtensionList
->reveal(), $this->themeExtensionList
->reveal());
}