Commit Graph

6 Commits

Author SHA1 Message Date
Bernard Hamlin
1d8f112dd8 Refactor to separate 'applyState' and 'saveState' functions
`appyState` will now only read the test session data and update the
environment to relect that state. This is intended for things like
database connections and mailer classes. Actions that need to alter
state to apply it (eg creating a temp db) should be done in other
actions such as 'start'

`saveState` will only take an existing state object and persist it to a
file

Also addresses:

[Connect to test database on session load](https://github.com/silverstripe/silverstripe-testsession/pull/63)
[Skip Temp DB creation if state has no database prop](https://github.com/silverstripe/silverstripe-testsession/pull/64)
Prevent re-creating session file on end (original issue for this PR)
2019-05-17 15:46:39 +12:00
Damian Mooyman
1ab843776d
App object refactor 2017-06-08 18:01:46 +12:00
Damian Mooyman
beda9e158f API Namespace and update for ss 4.0 2017-04-26 15:59:54 +12:00
Damian Mooyman
1bedade619 Upgrade for framework namespacing 2016-08-29 16:17:53 +12:00
helpfulrobot
e40a0d0f1a Converted to PSR-2 2015-12-18 07:17:16 +13:00
Ingo Schommer
81d39c2350 NEW Write PHP code for later inclusion
Useful for out-of-process stubs with Behat+Selenium
2013-11-27 19:29:44 +01:00