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.
Working on #1953408: Remove ArrayAccess BC layer from field config entities was found that cache tests are totally broken.
Thats caused that cardinality was taken from string not field, so 0 (zero) items generated
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal8.field-system.2087449-1.patch | 1.37 KB | andypost |
Comments
Comment #1
andypostComment #2
amateescu CreditAttribution: amateescu commentedHow about this one?
And why is it not failing if it's broken? :)
Comment #3
andypostBecause
$string[abrakadabra]
=== 0AND FieldTestBase::_generateTestFieldValues just saves 0 to wrong field, so presence of the entity unknown
Comment #4
webchickI didn't quite parse #3 and asked andypost for more details.
In https://api.drupal.org/api/drupal/core!modules!field!lib!Drupal!field!Te... it's doing this:
Since $cardinality evaluates to 0, basically the loop is skipped.
Committed and pushed to 8.x. Thanks!