diff --git a/app/Fileshare/Actions/ListFilesAction.php b/app/Fileshare/Actions/ListFilesAction.php index b1a2b4f6..96f2f0a0 100644 --- a/app/Fileshare/Actions/ListFilesAction.php +++ b/app/Fileshare/Actions/ListFilesAction.php @@ -17,6 +17,6 @@ class ListFilesAction */ public function handle(ActionRequest $request, Fileshare $fileshare): DataCollection { - return ResourceData::collection($fileshare->type->getSubDirectories($request->input('parent')))->wrap('data'); + return ResourceData::collect($fileshare->type->getSubDirectories($request->input('parent')))->wrap('data'); } } diff --git a/tests/Feature/Contribution/StoreTest.php b/tests/Feature/Contribution/StoreTest.php index 7811ee37..e2fd0808 100644 --- a/tests/Feature/Contribution/StoreTest.php +++ b/tests/Feature/Contribution/StoreTest.php @@ -141,7 +141,7 @@ class StoreTest extends TestCase ])->assertSessionHasErrors($errorField); } - protected static function validationDataProvider(): Generator + public static function validationDataProvider(): Generator { yield [ ['type' => 'aaa'],