I'm working with a custom process flow in which the system should update a relationship. With that said, I think it is pretty obvious that the Ids differ from the sandbox and the production environments, and of course it is different on the test classes context.
Some flows have formula criterias. Is there a way not to run those flows in a test context? Something like ISTEST()
on formula? I know that we have that on Apex, but I've never seen it on process builder.
If not available, what would be an acceptable approach in this situation, so the flow wouldn't mess up the tests?