Testing
Testing Flow between Services
# test file
$distributedTicketChannel = SimpleMessageChannelBuilder::createQueueChannel('distributed_ticket');
$userService = EcotoneLite::bootstrapFlowTesting(
configuration: ServiceConfiguration::createWithDefaults()
->withServiceName('user_service')
->withExtensionObjects([
// distributed service map on the publisher side
DistributedServiceMap::initialize()
->withServiceMapping(serviceName: 'ticket_service', channelName: 'distributed_ticket'),
// shared in memory channel
enableAsynchronousProcessing: [distributedTicketChannel]
]),
)Testing with real Message Channels and serialization
Last updated
Was this helpful?