whenInvokeThrows method

void whenInvokeThrows(
  1. String methodName,
  2. RealtimeFailure failure
)

Stubs an error returned by invoke or invokeAs for methodName.

Implementation

void whenInvokeThrows(String methodName, RealtimeFailure failure) {
  _mockErrors[methodName] = failure;
}