- Issue created by @wim leers
š
Constraint slot names allowed by XB in its component tree
Active
added ValidSlotNameConstraintValidator
.
It added comprehensive test coverage in ComponentValidationTest::testSlotNameValidation()
, where you'll see:
* @testWith ["valid", false]
* ["even_more-valid", false]
* ["-", true]
* ["--", true]
* ["_", true]
* ["__", true]
* ["-not_valid", true]
* ["_not_valid", true]
* ["not_valid-", true]
* ["not_valid_", true]
* ["a", true]
* ["aa", true]
* ["aaa", false]
* ["nšt_valid", true]
* ["spaces aren't okay", true]
* ["newline\nnot_allowed", true]
* ["rm -rf /", true]
* ["slot_\u03E2eird", true]
The problem: that takes ~2 minutes! Because it's a kernel test.
ValidSlotNameConstraintValidator
ComponentValidationTest::testSlotNameValidation()
None.
Active
0.0
Config management
It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.
Enhances developer experience.