$this->eventDispatcher =
new CollectingEventDispatcher();
$this->kernelPluginCollectionMock =
$this->
createMock(KernelPluginCollection::
class);
$this->containerMock =
$this->
createMock(Container::
class);
$this->migrationLoaderMock =
$this->
createMock(MigrationCollectionLoader::
class);
$this->requirementsValidatorMock =
$this->
createMock(RequirementsValidator::
class);
$this->cacheItemPoolInterfaceMock =
$this->
createMock(CacheItemPoolInterface::
class);
$this->pluginServiceMock =
$this->
createMock(PluginService::
class);
$this->commandExecutor =
$this->
createMock(CommandExecutor::
class);
$this->pluginMock =
$this->
createMock(Plugin::
class);
$this->pluginMock->
method('getNamespace'
)->
willReturn('MockPlugin'
);
$this->pluginMock->
method('getMigrationNamespace'
)->
willReturn('migration'
);
$this->pluginLifecycleService =
new PluginLifecycleService( $this->pluginRepoMock,
$this->eventDispatcher,
$this->kernelPluginCollectionMock,
$this->containerMock,
$this->migrationLoaderMock,
$this->
createMock(AssetService::
class),
$this->commandExecutor,
$this->requirementsValidatorMock,