-
Bug
-
Resolution: Fixed
-
Major
-
4.2.3, 4.3.1
Before we run any test we reset the database and ensure that state.
We do this by keeping track of the number of times we've written to the database.
When we run isolated tests we reset the database before we run the test, then we start the isolated run.
The isolated run does not have access to the DB write counter, so it is initialised as null again. This means that we write before the test, then write again on the phpunit isolated run bootstrap.
The database is again reset, if required, after the run completes.
We need to adjust the bootstrap to not reset if it is an isolated run because we know that isolated runs can only be called from within PHPUnit, and we only do this after we have reset the database (if it needs it).