You are here

protected function ModuleRequiredByThemesUninstallValidatorTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php \Drupal\Tests\Core\Extension\ModuleRequiredByThemesUninstallValidatorTest::setUp()
  2. 9 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\Extension

Code

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());
}