Can't resolve Record parameter in Test

Hi, I'm currently adding tests to my application and wanted to test if a user can edit a agency when the permission is given. Somehow I always get an exception:
Unable to resolve dependency [Parameter #0 [ <required> string|int $record ]] in class Filament\Resources\Pages\EditRecord (View: /var/www/html/storage/framework/views/a168b0ebcff266df6b662fc4b6d06e88.blade.php)
Unable to resolve dependency [Parameter #0 [ <required> string|int $record ]] in class Filament\Resources\Pages\EditRecord (View: /var/www/html/storage/framework/views/a168b0ebcff266df6b662fc4b6d06e88.blade.php)
actingAs($user)
->get(AgencyResource::getUrl('edit', ['record' => $agency]))
->assertSuccessful();
actingAs($user)
->get(AgencyResource::getUrl('edit', ['record' => $agency]))
->assertSuccessful();
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server