/**
* @param array<CustomerEntity>|null $customerRepositoryResultArray
* @param array<OrderAddressEntity>|null $orderAddressRepositoryResultArray
* @param callable(string, string, array<string, mixed>): SalesChannelContext|null $salesChannelContextFactoryCreateCallable
*/
private function getOrderConverter(?array
$customerRepositoryResultArray = null, ?array
$orderAddressRepositoryResultArray = null, ?callable
$salesChannelContextFactoryCreateCallable = null, ?EventDispatcherInterface
$eventDispatcher = null
): OrderConverter
{ // Setup classes for OrderConverter
// Static
$orderDefinition =
new OrderDefinition();
$initialStateIdLoader =
$this->
createMock(InitialStateIdLoader::
class);
$numberRangeValueGenerator =
$this->
createMock(NumberRangeValueGeneratorInterface::
class);
$numberRangeValueGenerator->
method('getValue'
)->
willReturn('10000'
);
// Dynamic
$salesChannelContextFactory =
$this->
createMock(AbstractSalesChannelContextFactory::
class);
if ($salesChannelContextFactoryCreateCallable !== null
) { $salesChannelContextFactory->
method('create'
)->
willReturnCallback($salesChannelContextFactoryCreateCallable);
} $customerRepository =
$this->
createMock(EntityRepository::
class);