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.
All of our boolean fields have a default value except this one, which means that PaymentMethod::isDefault() returns NULL instead of FALSE by default, breaking the assertFalse() comparison.
Discovered in #3093383: Fix the tests on Drupal 8.8-beta1.
The solution is to add a default value to FALSE, ensure that the test passes on 8.8, see if we need an update hook.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3093396-2-default-value.patch | 802 bytes | bojanz |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedLooks like an update function is not needed.
Let's see what the tests say.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedI really did not expect this issue to be a one-line fix. Oh, well.