You are here

protected function ModuleRequiredByThemesUninstallValidatorTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 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 43

Class

ModuleRequiredByThemesUninstallValidatorTest
@coversDefaultClass \Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

protected function setUp() {
  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());
}