Skip to content
Snippets Groups Projects
Commit 71287c86 authored by catch's avatar catch
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment