automated tests

Closes #3581774

● All 26 tests pass with 113 assertions. Here's what was created:

Files created (4):

  • tests/src/Kernel/HideSubmitFormAlterTest.php — 7 tests covering the core service: library attachment, drupalSettings population, bypass permission, user 1 exception, indicator libraries, custom config passthrough, integer casting
  • tests/src/Kernel/HideSubmitSettingsFormTest.php — 16 tests (including data providers) covering the settings form: form ID, editable config names, default values, element types, method options, config persistence on submit, numeric validation for both valid and invalid inputs
  • tests/src/Kernel/HideSubmitConfigTest.php — 3 tests covering install defaults, permissions, and route definition
  • config/schema/hide_submit.schema.yml — config schema that the module was missing (required by kernel tests, and a best practice regardless)

Merge request reports

Loading