Issue #3584683: Add test coverage
Summary
Adds automated coverage for installation, Views integration, field editing functionality, permission handling, and security-sensitive submissions.
Changes
Coverage includes:
- Registration of
entity_form_fieldhandlers in Views data. - Editing entity field values through a View.
- Denying access when the user lacks entity update access.
- Denying access when the user lacks field edit access.
- Forged POST submissions attempting to update inaccessible fields.
- Rendering inaccessible fields with the configured fallback view mode.
Also adds missing Views config schema for field_name and plugin.fallback_view_mode.
Fixes fallback rendering so the fallback render array is not overwritten by a field widget build.
Testing
vendor/bin/phpunit web/modules/contrib/views_entity_form_field/tests/src/Functional/EntityFormFieldTest.php
Result:
OK (5 tests, 39 assertions)
Closes #3584683