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.
Provide some Simpletest for the module on D7 to help with regression testing.
Comment | File | Size | Author |
---|---|---|---|
#10 | eck-n2889325-10.interdiff.txt | 372 bytes | DamienMcKenna |
#10 | eck-n2889325-10.patch | 24.16 KB | DamienMcKenna |
|
Comments
Comment #2
DamienMcKennaTests written for #1798646.
Comment #3
DamienMcKennaThe tests cover some basic CRUD actions, translation using Entity Translation, and then translation when attached to a node using EntityReference. So far the basic functionality appears to be working well, even with translations. There's a whole lot more to do to build these out, but this should help with regression testing and create a platform to build upon for the additional changes that are to be added to the 7.x-2.x branch.
Comment #4
DamienMcKennaICBW but I think if we also had tests for the permissions structure we'd then be able to ditch the behat tests entirely.
Comment #5
DamienMcKennaWrong filenames. Duh.
Comment #6
DamienMcKennaOnly one test file was picked up that time, lets see if this fixes the problem.
Comment #7
DamienMcKennaFurther improvements.
Comment #9
DamienMcKennaDuh, Damien, OOP basics.
Comment #10
DamienMcKennaIt isn't picking up the translation tests because of a missing test dependency.
Comment #11
DamienMcKennaOnce the test_dependencies[] lines are committed it'll then run the translation tests too.
Comment #12
DamienMcKennaRerunning the tests to make sure it still all works.
Comment #13
pifagor+1
Comment #14
pifagorComment #16
pifagorComment #17
DamienMcKennaExcellent! Thanks.