FilamentF
Filament2y ago
Noor

Test failing

My code -
test('user cannot view create inspection form if they do not have permission', function () {
    $this->get(InspectionResource::getUrl('create'))->assertForbidden();
   
}); 

Error
Tests\Feature\InspectionTest > user cannot view create inspection form if they do not have permission                                                                   
  Expected response status code [403] but received 200.
Failed asserting that 403 is identical to 200.
Was this page helpful?