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 ConfigurableLanguage 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 |
|---|---|---|---|
| #5 | interdiff.txt | 1.4 KB | Anonymous (not verified) |
| #5 | rest_configurable_language-2843761-5.patch | 9.2 KB | Anonymous (not verified) |
Comments
Comment #3
Anonymous (not verified) commentedComment #4
wim leers:D
Can't we hardcode this?
Let's call the parent method and add our additional expected cache context.
So:
return Cache::mergeContexts(parent::getExpectedCacheContexts(), ['languages:language_interface']);As soon as those two nits are fixed, this is RTBC!
Comment #5
Anonymous (not verified) commentedDone, thanks!
Comment #6
Anonymous (not verified) commentedComment #7
wim leersComment #8
alexpottCommitted and pushed 66c750c to 8.4.x and 07ebc39 to 8.3.x. Thanks!
Committed to to 8.3.x because it is mostly adding test coverage. Yes there is a change to the view operation whilst access handling but this is just to call the parent access handler and is correct. Viewing config entities is weird.