Open wernerkrauss opened 7 years ago
I also suggest that any sapphiretest helper that touches DB should immediately fail with a RuntimeException if a test DB isn't setup / active. We could fix it in this case, but we probably need a safe "lock" on the live db for future potential violators.
Perhaps if a test has requires_database = false, then sapphiretest should explicitly disconnect the DB?
See #7403
Those two tests write to live DB as
SapphireTest
doesn't have test DB set up. Possible solutions are:SapphireTest_DB
)I'm happy to make a PR for the first solution in my WIP PR #7409