Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have added messaging to comments for when an update is attempted. There was no 'delete' operation that I could see in the CommentAccessControlHandler class.
Yay! Tests are failing! This is good--it means the tests are working as they should.
Take a look at the tests that are failing; resolution should be a matter of updating those failed tests to use the new error message you've created. I hope this helps!
Comments
Comment #2
wim leersComment #3
tstoecklerComment #4
owenbush commentedLooking at this at DrupalCon Nashville.
Comment #5
owenbush commentedI have added messaging to comments for when an update is attempted. There was no 'delete' operation that I could see in the CommentAccessControlHandler class.
Comment #6
owenbush commentedNeeds review.
Comment #8
josephdpurcell commentedYay! Tests are failing! This is good--it means the tests are working as they should.
Take a look at the tests that are failing; resolution should be a matter of updating those failed tests to use the new error message you've created. I hope this helps!
Comment #9
owenbush commentedThank you. I have updated the test case and added an interdiff too.
Comment #10
owenbush commentedComment #11
borisson_This looks very good, the added message looks solid and we have testcoverage that proves that this works.
Comment #12
josephdpurcell commentedComment #13
josephdpurcell commentedAh! Sorry, wrong click. Setting back to RTBC per #11.
Comment #14
alexpottCrediting @Wim Leers for creating this issue.
Comment #15
alexpottI deliberated whether this should be an instanceof check against AccessResultReasonInterface. I think the code is more readable like this.
Committed 2023ce8 and pushed to 8.6.x. Thanks!