use testing database for capturing test data (#10635)

if available
This commit is contained in:
Tony Murray
2019-09-30 13:21:37 +00:00
committed by GitHub
parent 4c075a3484
commit 4a36c18e69

View File

@@ -27,6 +27,8 @@ $options = getopt(
$init_modules = array('discovery', 'polling');
require $install_dir . '/includes/init.php';
\config(['database.default' => 'testing']); // use testing db (which falls back to the primary db)
$debug = (isset($options['d']) || isset($options['debug']));
$vdebug = $debug;