From 4a36c18e69a49df7b4363dd30bc4d28796035e7e Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 30 Sep 2019 13:21:37 +0000 Subject: [PATCH] use testing database for capturing test data (#10635) if available --- scripts/save-test-data.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/save-test-data.php b/scripts/save-test-data.php index 06cd9aa7f6..d292b38029 100755 --- a/scripts/save-test-data.php +++ b/scripts/save-test-data.php @@ -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;