Overwrite doGenerate to reduce amount of mocking needed
Expanded class hierarchy of TestableProviderBasedGenerator
class TestableProviderBasedGenerator extends ProviderBasedGenerator {
  protected function doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $absolute, $hostTokens = null) {
    return 'result_url';
  }
}| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| ProviderBasedGenerator:: | protected | property | The route provider for this generator. | |
| ProviderBasedGenerator:: | public | function | Generates a URL or path for a specific route based on the given parameters. Overrides UrlGenerator:: | 2 | 
| ProviderBasedGenerator:: | public | function | Convert a route identifier (name, content object etc) into a string
usable for logging and other debug/error messages Overrides VersatileGeneratorInterface:: | 1 | 
| ProviderBasedGenerator:: | public | function | Support a route object and any string as route name Overrides VersatileGeneratorInterface:: | 1 | 
| ProviderBasedGenerator:: | public | function | Constructor. Overrides UrlGenerator:: | 1 | 
| TestableProviderBasedGenerator:: | protected | function | Overrides UrlGenerator:: | |
| UrlGenerator:: | protected | property | ||
| UrlGenerator:: | protected | property | This array defines the characters (besides alphanumeric ones) that will not be percent-encoded in the path segment of the generated URL. | |
| UrlGenerator:: | protected | property | ||
| UrlGenerator:: | protected | property | ||
| UrlGenerator:: | protected | property | ||
| UrlGenerator:: | public | function | Gets the request context. Overrides RequestContextAwareInterface:: | 1 | 
| UrlGenerator:: | public static | function | Returns the target path as relative reference from the base path. | |
| UrlGenerator:: | public | function | Returns whether to throw an exception on incorrect parameters.
Null means the requirements check is deactivated completely. Overrides ConfigurableRequirementsInterface:: | |
| UrlGenerator:: | public | function | Sets the request context. Overrides RequestContextAwareInterface:: | 1 | 
| UrlGenerator:: | public | function | Enables or disables the exception on incorrect parameters.
Passing null will deactivate the requirements check completely. Overrides ConfigurableRequirementsInterface:: | |
| UrlGeneratorInterface:: | constant | Generates an absolute path, e.g. "/dir/file". | ||
| UrlGeneratorInterface:: | constant | Generates an absolute URL, e.g. "http://example.com/dir/file". | ||
| UrlGeneratorInterface:: | constant | Generates a network path, e.g. "//example.com/dir/file". Such reference reuses the current scheme but specifies the host. | ||
| UrlGeneratorInterface:: | constant | Generates a relative path based on the current request path, e.g. "../parent-file". |