13.6Mock Salesforce
Production flow has:
Salesforce Upsert
We don't want it connecting externally.
So:
Mock When
Conceptually:
<munit-tools:mock-when
processor="salesforce:upsert">
<munit-tools:then-return>
<munit-tools:payload
value='#[[
{
id: "001ABC",
success: true
}
]]'/>
</munit-tools:then-return>
</munit-tools:mock-when>
Meaning:
When production flow reaches Salesforce Upsert, don't call Salesforce. Return this instead.
Mock When identifies the processor and can return a mocked payload or error.