Skip to main content
1 of 2

Saw this on another post, have not tested it.

if (!System.Test.isRunningTest()) { WebServiceCallout.invoke(...) } else { // Simulate callout here... }