Skip to content

Commit fccd24c

Browse files
dgafkagitbook-bot
authored andcommitted
GITBOOK-879: No subject
1 parent e79e54f commit fccd24c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modelling/testing-support/testing-asynchronous-messaging.md

+14
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ You may run consumer from separate process like this: (example for symfony):\
8585
However running consumer as separate process is not advised, as it `requires booting separate process`which slows test suite, and due to lack of`shared memory` does not allow for using `In Memory implementations.`
8686
{% endhint %}
8787

88+
## Default Message Channels
89+
90+
For testing with In Memory Channels, we can omit providing specific implementation. \
91+
Ecotone will deliver an default In Memory Message Channels for us:
92+
93+
```php
94+
$ecotoneTestSupport = EcotoneLite::bootstrapFlowTesting(
95+
[OrderService::class, NotificationService::class],
96+
[new OrderService(), new NotificationService()],
97+
// We simply state, that we want to enable async processing
98+
enableAsynchronousProcessing: true
99+
);
100+
```
101+
88102
## Polling Metadata
89103

90104
By default Ecotone will optimize for your test scenario:

0 commit comments

Comments
 (0)