Hi, I need to change the structure of the database via upgrade.php during upgrade of a plugin.
Does anyone have tips or an example for writing tests for /db/upgrade.php ?
I'm thinking along the lines of:
- Load xml fixture file into database
- call xmldb_room_upgrade()
- test tables are correctly modified, new records have been correctly created, etc.
Is this a good idea? I find no examples of testing upgrade.php in core or any plugins. Maybe there is a good reason...