Function
| Arg | Description | Type |
|---|---|---|
| plugin | The plugin to mock | string |
| function | The function to mock | string |
| expected_calls | How many times plugin should be called | int |
| clear | This call will clear previous mocks for this plugin | bool |
Replay recorded calls on a mock.