private MockObject&PluginService
$pluginServiceMock;
/**
* @var (object&MockObject)|MockObject|CommandExecutor|(CommandExecutor&object&MockObject)|(CommandExecutor&MockObject)
*/
private CommandExecutor&MockObject
$commandExecutor;
protected function setUp(): void
{ $this->pluginRepoMock =
$this->
createMock(EntityRepository::
class);
$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'
);