Suppress DB default record output in behat runs

This commit is contained in:
Ingo Schommer 2012-11-14 15:19:22 +01:00
parent 103372a08a
commit 046350fcce

View File

@ -167,6 +167,7 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
\SapphireTest::empty_temp_db(); \SapphireTest::empty_temp_db();
global $databaseConfig; global $databaseConfig;
\DB::connect($databaseConfig); \DB::connect($databaseConfig);
\DB::getConn()->quiet();
$dataClasses = \ClassInfo::subclassesFor('DataObject'); $dataClasses = \ClassInfo::subclassesFor('DataObject');
array_shift($dataClasses); array_shift($dataClasses);
foreach ($dataClasses as $dataClass) { foreach ($dataClasses as $dataClass) {