Test failing
My code -
Error
test('user cannot view create inspection form if they do not have permission', function () {
$this->get(InspectionResource::getUrl('create'))->assertForbidden();
}); 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.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.