Skip to content
Snippets Groups Projects
Commit 8abe3230 authored by Liam Morland's avatar Liam Morland
Browse files

Fix bug in testing by class

If --class is the first parameter, array_search() will return zero,
which is interpreted as it not having been found.

Fixes issue introduced in 86bf0772.
parent 673243d4
No related branches found
No related tags found
2 merge requests!433ISTWCMS-6296 Create test for all event dates test cases,!304Fix bug in testing by class
...@@ -38,7 +38,7 @@ $_SERVER['argv'] = [ ...@@ -38,7 +38,7 @@ $_SERVER['argv'] = [
$site_to_test, $site_to_test,
]; ];
// Allow testing specified classes. Default to running all module tests. // Allow testing specified classes. Default to running all module tests.
if (!array_search('--class', $original_argv)) { if (!in_array('--class', $original_argv)) {
$_SERVER['argv'][] = '--module'; $_SERVER['argv'][] = '--module';
$_SERVER['argv'][] = implode(',', $modules_to_test); $_SERVER['argv'][] = implode(',', $modules_to_test);
} }
......
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