From 046350fcce18491312b6c944a2d733824219ab34 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Nov 2012 15:19:22 +0100 Subject: [PATCH] Suppress DB default record output in behat runs --- src/SilverStripe/BehatExtension/Context/SilverStripeContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SilverStripe/BehatExtension/Context/SilverStripeContext.php b/src/SilverStripe/BehatExtension/Context/SilverStripeContext.php index ffebf2d..77599bc 100644 --- a/src/SilverStripe/BehatExtension/Context/SilverStripeContext.php +++ b/src/SilverStripe/BehatExtension/Context/SilverStripeContext.php @@ -167,6 +167,7 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex \SapphireTest::empty_temp_db(); global $databaseConfig; \DB::connect($databaseConfig); + \DB::getConn()->quiet(); $dataClasses = \ClassInfo::subclassesFor('DataObject'); array_shift($dataClasses); foreach ($dataClasses as $dataClass) {