The TestServiceProvider is meant to be a substitute for the traditional context and application that T3 Modules/Behaviors/Services usually have access to.
The object allows for easy stubbing of T3 services and can enable unit tests to use the real service, if necessary.
A map of service names to stubs.
List of real services to use. You must include the service in your test script.
Service Stub Example
Real Service Usage Example
Retrieves either a service stub or the real service.
A service object or throws an error if service does not exist.
Checks if a service stub or the real service exists