private Context
$context;
protected function setUp(): void
{ $this->themeServiceMock =
$this->
createMock(ThemeService::
class);
$this->configurationRegistryMock =
$this->
createMock(StorefrontPluginRegistryInterface::
class);
$this->themeLifecycleServiceMock =
$this->
createMock(ThemeLifecycleService::
class);
$this->themeRepositoryMock =
$this->
createMock(EntityRepository::
class);
$this->connectionMock =
$this->
createMock(Connection::
class);
$this->themeLifecycleHandler =
new ThemeLifecycleHandler( $this->themeLifecycleServiceMock,
$this->themeServiceMock,
$this->themeRepositoryMock,
$this->configurationRegistryMock,
$this->connectionMock
);
$this->context = Context::
createDefaultContext();
} public function testThemeUninstallWithoutData(): void
{