| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class MockAction extends MockComponent |
||
| 12 | { |
||
| 13 | use FieldAssertions; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Dispatches the Action, and returns a test handler for the Action response. |
||
| 17 | * |
||
| 18 | * @param array $fields A set of action fields send to the Action, as a key-value array |
||
| 19 | * @param Model|Model[]|Collection $models A set of models sent to the Action |
||
| 20 | * @return MockActionResponse A mock class for testing Nova Action responses |
||
| 21 | */ |
||
| 22 | 1 | public function handle(array $fields, $models): MockActionResponse |
|
| 29 |