Problem/Motivation
\Drupal\FunctionalTests\Core\Config\SchemaConfigListenerTest Makes no HTTP requests but is a functional test. This is correct because it is asserting that Functional tests have schema checking turned on by default.
Proposed resolution
Fix the comment to say what the test actual does.
Remaining tasks
None
User interface changes
N/a
API changes
N/a
Data model changes
N/a
Release notes snippet
N/a
Issue fork drupal-3415161
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:
- 3415161-convert-schemaconfiglistenertest-into
changes, plain diff MR !6208
Comments
Comment #3
mstrelan commentedWe already have an equivalent Kernel test for this. See
\Drupal\KernelTests\Core\Config\SchemaConfigListenerTest. It seems this is supposed to remain a Functional test. But we should update this comment for clarity:#2553733: BrowserTestBase should be adding the config schema checker like WebTestBase
Comment #4
spokjeThe comment change is a win no matter what.
However, I have _no_ clue how this and its KernelTest sibling are testing the config schemas, since that logic was changed in #2625212: Add ConfigSchemaChecker to development.services.yml.
FYI: I often have _no_ clue and need to be explained what's going on.
I'll ping @alexpott and/or other core committers to get that explanation and maybe it's worth adding that to both the tests so this is clear once and for all?
EDIT: Even more "interesting", #2625212 has a commit
19006b5eand a rollbackc346599b, but that rollback only reverted one out of the 14 changed files...Comment #5
mstrelan commentedCan I join the clueless club?
Comment #6
spokjeWell, we as a club have no clue on what rules apply to becoming a member, so hop on in! ;)
Comment #7
alexpottThe change in the MR is correct.
And yes this test is testing something. Add the following code to the class and you will see it fail.
The test is in \Drupal\Tests\Traits\Core\Config\SchemaConfigListenerTestTrait so that the Kernel and Functional tests can share.
Comment #8
spokjeComment #11
catchCommitted/pushed to 11.x and cherry-picked to 10.2.x, thanks!