Problem/Motivation
Everytime new test entity is committed to core. The DB dump becomes outdated. 8.x-2.x starts failing. See #2775539: DerUpdateTest is failing after 2755525 and #2839698: Fix fails in 2.x branch
Proposed resolution
Use core DB dump and update the DB by using the additional PHP script as databaseDumpFiles to enable DER, to add DER fields and to add content.
Remaining tasks
See \Drupal\field\Tests\Update\FieldUpdateTest for eaxmple
User interface changes
None
API changes
None
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | use_core_db_dump_in-2844973-2.patch | 429.05 KB | jibran |
Comments
Comment #2
jibranUnfortunately, there is no way around that. We can add new configurable fields to the config but we can't install DB tables and for the basefields we have to add new entity which will add der field and create entity tables. After all that we have to create new sample entities which can only be created in setUp method which is also a big no. In the light of all that I think we are better of creating new DB dump. :(
Comment #6
jibranEverything is green now.