| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait NovaResourceTest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Initialize the Nova Resource mock. |
||
| 12 | * |
||
| 13 | * @param string $class The class path of the Resource |
||
| 14 | * @param Model|null $model The object to apply to this Resource |
||
| 15 | * @return MockResource The Resource mock instance |
||
| 16 | * @throws InvalidNovaResourceException If the supplied action class is not a Nova Resource |
||
| 17 | */ |
||
| 18 | 3 | public static function novaResource(string $class, ?Model $model = null): MockResource |
|
| 29 |