From 2f1e02151f6fecaddea07a129ec56ce1e81481bb Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 22 Sep 2024 03:02:10 +0200 Subject: [PATCH] Fix tests --- app/Fileshare/Actions/ListFilesAction.php | 2 +- tests/Feature/Contribution/StoreTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'],