ModuleRequiredByThemesUninstallValidator example


  protected $themeExtensionList;

  /** * {@inheritdoc} */
  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());
  }

  /** * @covers ::validate */
  public function testValidateNoThemeDependency() {
    $this->themeExtensionList->getAllInstalledInfo()->willReturn([
      'stable9' => [
        'name' => 'Stable 9',
        'dependencies' => [],
      ],
      
Home | Imprint | This part of the site doesn't use cookies.