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:
Ingo Schommer 2012-12-06 17:39:45 +01:00
parent 90443b64f9
commit 135ae89617

View File

@ -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);