Commit 71287c86 authored by catch's avatar catch

Issue #2198713 by tstoeckler: Add a settings.php variable to allow to...

Issue #2198713 by tstoeckler: Add a settings.php variable to allow to discover/enable test extensions at regular runtime.
parent bf3ba52f
......@@ -140,8 +140,10 @@ public function scan($type, $include_tests = NULL) {
// Unless an explicit value has been passed, manually check whether we are
// in a test environment, in which case test extensions must be included.
// Test extensions can also be included for debugging purposes by setting a
// variable in settings.php.
if (!isset($include_tests)) {
$include_tests = (bool) drupal_valid_test_ua();
$include_tests = drupal_valid_test_ua() || Settings::get('extension_discovery_scan_tests');
}
$files = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment