Problem/Motivation
\Drupal\Tests\standard\Functional\StandardTest::testStandard() validates all installed config for config schema compliance.
Umami should do the same.
Steps to reproduce
N/A
Proposed resolution
Copy test coverage from the Standard profile's test coverage.
Remaining tasks
- Copy test coverage from the Standard profile's test coverage.
- Fix failures caused by config schema violations in Demo Umami's config — given the problems surfaced at #3361534: KernelTestBase::$strictConfigSchema = TRUE and BrowserTestBase::$strictConfigSchema = TRUE do not actually strictly validate, we know for sure there are problems.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Issue fork drupal-3377055
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:
- 3377055-umami-validate-config
changes, plain diff MR !4480
Comments
Comment #3
wim leersI expect this to fail like so:
Comment #4
wim leersNow expecting
Root cause: #3247795: Add text filter plugin to support <img loading="lazy"> and remove it from editor_file_reference wanted to allow users of Basic HTML to override the
loadingattribute on<img>, but didn't correctly upgrade the CKEditor 5 settings to actually allow it.Comment #5
wim leersThat should be green!
Comment #6
borisson_Great, let's change the drupalci.yml back to the default.
Comment #7
wim leersDid that, and also applied it to the install profile as you requested in Slack. Note that for Minimal, I did not include the CKEditor 5 validation logic because Minimal has no configuration that enables CKEditor 5.
Comment #8
borisson_Great, this will hopefully make sure that every config we have in core that comes with an install profile is compliant with the schema's that underpin it. These tests will probably break when we increase the validation of the config schema's but this is a great way to keep those schema's in check.
Comment #9
wim leersExactly, that's the goal! 😊
Comment #11
wim leers#3247795: Add text filter plugin to support <img loading="lazy"> and remove it from editor_file_reference is the answer to @lauriii's question.
Comment #12
lauriiiCommitted 39cf4d2 and pushed to 11.x. Thanks!