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.
Problem/Motivation
Please refer the problem/motivation section of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
Proposed resolution
Write EntityResourceTestBase subclass for the ContentLanguageSettings entity.
Remaining tasks
References
1. Follow-up of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
2. Subtask of #2824572: Write EntityResourceTestBase subclasses for every other entity type.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2843763-3-7.txt | 735 bytes | shadcn |
#7 | entityresource_provide-2843763-7.patch | 8.95 KB | shadcn |
#3 | entityresource_provide-2843763-3.patch | 8.91 KB | shadcn |
Comments
Comment #3
shadcn CreditAttribution: shadcn at Chapter Three commentedOK let's test this.
Comment #5
Wim LeersLet's use
setTargetBundle()
,setDefaultLangcode()
, etc.Comment #6
shadcn CreditAttribution: shadcn at Chapter Three commentedOK I'll make the changes. Thanks.
Comment #7
shadcn CreditAttribution: shadcn at Chapter Three commentedHmm we can't really use setTargetBundle here. See ContentLanguageSettings constructor below:
I've added the setDefaultLangcode call.
Comment #8
Wim LeersAh, hah :) Then this is good to go!
Comment #9
alexpottCommitted and pushed b712a2d to 8.4.x and d6a1aa6 to 8.3.x. Thanks!
Backported to 8.3.x because its tests only.