setTesting static method

  1. @visibleForTesting
void setTesting()

Set testing mode.

It is useful for testing.

Implementation

@visibleForTesting
static void setTesting() {
  _isTesting = true;
  ServiceLocator.instance.allowReassignment = true;
}