SilverStripe\TestSession\TestSessionEnvironment::applyState
Assumes the database has already been created in startTestSession(), as this method can be called from _config.php where we don't yet have a DB connection.
Persists the state to the filesystem. You can extend this by creating an Extension object and implementing either onBeforeApplyState() or onAfterApplyState() to add your own test state handling in.
Signature
public function applyState(mixed
$state )
Parameters
$state
— mixed