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