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