Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a subissue of #2012776: [META] Improve validation constraint test coverage
This is a test for the Constraint Validation: ValidReferenceConstraintValidator
Beta phase evaluation
Issue category | Task because automated test | |
---|---|---|
Issue priority | Normal because this is focused on one area. | |
Unfrozen changes | Unfrozen because it only changes tests. Not a feature. |
Comment | File | Size | Author |
---|---|---|---|
#26 | interdiff.txt | 368 bytes | stefan.r |
#26 | drupal8.2142997-ValidReferenceConstraintValidator-26.patch | 2.73 KB | stefan.r |
Comments
Comment #1
mariancalinro CreditAttribution: mariancalinro commentedComment #2
m1r1k CreditAttribution: m1r1k commentedI will take care
Comment #3
jibranComment #4
stefan.r CreditAttribution: stefan.r commentedComment #5
stefan.r CreditAttribution: stefan.r commentedComment #7
fagomiss @inheritdoc
indentation missing.
Else test looks good!
Comment #8
stefan.r CreditAttribution: stefan.r commentedThis patch was green but it was not running the tests in the patch any more :)
Re-roll attached
Comment #9
stefan.r CreditAttribution: stefan.r commentedTypo ("refence" -> reference)
Comment #13
pfrenssenThis refers to EntityTypeConstraintValidatorTest, but this is in fact ValidReferenceConstraintValidatorTest.
EntityUnitTestBase resides in the same namespace so this use statement is unnecessary.
Change the order of the other two so they are in alphabetical order.
Missing {@inheritdoc}.
Tip: you can use $this->assertFalse() to check for values that are 0.
I like this approach!
Strictly speaking according to coding standards the array should be split on a new line because it exceeds 80 characters. I do not feel very strongly about this ;)
Comment #14
stefan.r CreditAttribution: stefan.r commentedComment #15
pfrenssenThe assertEqual() -> assertFalse() pattern occurred multiple times in the test, sorry I didn't point this out in my previous review. For the rest this is looking very good.
Comment #16
pfrenssenComment #17
stefan.r CreditAttribution: stefan.r commentedComment #18
pfrenssenThanks! Looking great now.
Comment #19
alexpottThis issue is a normal task so we need to outline how it fits within the allowable Drupal 8 beta criteria. Can someone add Drupal 8 beta phase evaluation template to the issue summary.
Comment #20
stefan.r CreditAttribution: stefan.r commentedComment #22
stefan.r CreditAttribution: stefan.r commentedComment #23
stefan.r CreditAttribution: stefan.r commentedComment #24
YesCT CreditAttribution: YesCT commentedhtml.
Comment #25
stefan.r CreditAttribution: stefan.r commentedComment #26
stefan.r CreditAttribution: stefan.r commentedComment #27
stefan.r CreditAttribution: stefan.r commentedComment #28
YesCT CreditAttribution: YesCT commentedthat beta evaluation looks good.
and the interdiff in #26 should be fine and come back green.
Comment #29
alexpottCommitted e6e359b and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.