14 $themeUninstaller = $this->createMock(\
Magento\Theme\Model\Theme\ThemeUninstaller::class);
15 $themePackageInfo = $this->createMock(\
Magento\Theme\Model\Theme\ThemePackageInfo::class);
17 $this->getMockForAbstractClass(\Symfony\Component\Console\Output\OutputInterface::class, [],
'',
false);
18 $themePackageInfo->expects($this->once())->method(
'getFullThemePath')->willReturn(
'theme/path');
19 $themeUninstaller->expects($this->once())->method(
'uninstallRegistry')->with(
$output, [
'theme/path']);
20 $themeUninstall =
new ThemeUninstall($themeUninstaller, $themePackageInfo);
21 $themeUninstall->uninstall(
$output,
'vendor/package-theme');