Problem/Motivation

myrest.schema.yml defines two configuration objects, but nothing verifies that the saved configuration actually validates against the schema, or that the settings form persists values correctly.

Proposed resolution

  • Add a kernel test using SchemaCheckTestTrait for both configuration objects.
  • Add a functional test that submits MyrestLogSettingsForm and asserts the stored values.
  • Add validation coverage for invalid input (negative time limits, unknown hash algorithms).

Remaining tasks

Implement the tests and fix any schema mismatches they reveal.

User interface changes

None.

API changes

None.

Issue fork myrest-3616419

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed ca41ed8a on 1.0.x
    Issue #3616419: Add configuration schema and settings form tests
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)