Fix tests
This commit is contained in:
parent
eaf014b7c7
commit
2f1e02151f
|
@ -17,6 +17,6 @@ class ListFilesAction
|
||||||
*/
|
*/
|
||||||
public function handle(ActionRequest $request, Fileshare $fileshare): DataCollection
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ class StoreTest extends TestCase
|
||||||
])->assertSessionHasErrors($errorField);
|
])->assertSessionHasErrors($errorField);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function validationDataProvider(): Generator
|
public static function validationDataProvider(): Generator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
['type' => 'aaa'],
|
['type' => 'aaa'],
|
||||||
|
|
Loading…
Reference in New Issue