Problem/Motivation
Follow-up to #2321721-71: Provide a views relationship for each dynamic entity reference field
@dawehner said
Did you ever tried to place a DER field as part of basefields?
We don't have a proper test for this.
Proposed resolution
Add entity_test_der as new test entity and check it's view integration and field CRUD operation.
Remaining tasks
Write a patch
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | interdiff.txt | 4.46 KB | jibran |
| #8 | write_tests_for_der-2542274-8.patch | 26.67 KB | jibran |
Comments
Comment #1
jibranAdded EntityUnit tests
Needs functional tests.
Comment #2
larowlanCan't each test have a property $numberOfFieldsToCreate this looks fragile
Any reason not to use state here instead? Most tests use state for this kind of thing
Saves you the schema and default too
Comment #3
jibranNice catches fixed both of the issues.
Comment #4
jibranIt is ready for review added functional tests.
Comment #7
jibranChasing HEAD.
Comment #8
jibranAdded single value field test.
Comment #9
larowlanShould we use the constant here (nit - fix on commit)
Wow - this is awesome!
Comment #10
jibranThanks for the review. Attached the interdiff fixed on commit.
Comment #11
jibran