mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Removed reconnect to DB on fixture defaults, it breaks state
Specifically, it resets to the standard database config, rather than the session/cookie state for the temporary database.
This commit is contained in:
parent
90443b64f9
commit
135ae89617
@ -165,8 +165,6 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
|
||||
public function beforeDatabaseDefaults(ScenarioEvent $event)
|
||||
{
|
||||
\SapphireTest::empty_temp_db();
|
||||
global $databaseConfig;
|
||||
\DB::connect($databaseConfig);
|
||||
\DB::getConn()->quiet();
|
||||
$dataClasses = \ClassInfo::subclassesFor('DataObject');
|
||||
array_shift($dataClasses);
|
||||
|
Loading…
Reference in New Issue
Block a user