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.
field_test_entity_info does not set a 'label' on the Test Entity
Instead it sets a name.
This causes warnings during testing and in Drupal 7 causes test-results to be deemed as failure when running from Jenkins using drush.
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#12 | field_test_entity_info-1812822-12.fail_.patch | 916 bytes | _wdm_ |
#12 | field_test_entity_info-1812822-pass.12.patch | 3.68 KB | _wdm_ |
#6 | field_test_entity_info-1812822-pass.6.patch | 4.08 KB | larowlan |
#6 | field_test_entity_info-1812822-6.fail_.patch | 1001 bytes | larowlan |
#1 | field_test_entity_info-1812822.1.patch | 3.1 KB | larowlan |
Comments
Comment #1
larowlanPatch for fix
Comment #2
larowlanComment #3
rcross CreditAttribution: rcross commentedseems straight forward to me.
Comment #4
CBAgreed. Looks simple enough.
Comment #5
larowlan@beejeebus would like to see a -fail patch that demonstrates the failures without this patch.
Comment #6
larowlanNew patch adds tests
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedgreat, this looks ready to go.
Comment #9
webchickIs that right? Seems to be the opposite of what is intended?
Comment #10
larowlanHi @webchick
I thought the same at first, but the 'without label' is for the actual entities, not the entity type.
Eg node's label is the title.
The without label refers to the 'entity keys' not having a label entry - here's the relevant bits
Lee
Comment #11
webchickAh, ok. Thanks for the explanation.
Committed and pushed to 8.x. Thanks! Moving to 7.x.
Comment #12
_wdm_ CreditAttribution: _wdm_ commentedComment #13
larowlanStraight backport
Comment #14
David_Rothstein CreditAttribution: David_Rothstein commentedCommitted to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/735adae7f3051b4e1701dd46...
However, I'm not sure what was going on with this (in the D7 patch):
I removed the extra lines on commit.