From 2c074028907454256499b0627c69175549846a7f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 16 Sep 2019 08:09:05 -0400 Subject: [PATCH] Test fixes --- karma.conf.js | 1 + tools/scripts/phpunit | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 2915dc7814..1710c33fdc 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -21,6 +21,7 @@ module.exports = function(config) { autoWatch: true, browsers: ['PhantomJS'], exclude: [ + 'ang/api4Explorer/Explorer.js' ], files: [ 'bower_components/phantomjs-polyfill/bind-polyfill.js', diff --git a/tools/scripts/phpunit b/tools/scripts/phpunit index 671c4d7440..2e682bc0db 100755 --- a/tools/scripts/phpunit +++ b/tools/scripts/phpunit @@ -50,7 +50,7 @@ array_shift($argv); // Convert class names to file names $CIVICRM_UF = 'UnitTests'; foreach ($argv as $k => $v) { - if (preg_match('/^(CRM_|api_v3_|EnvTest|WebTest_|E2E_)/', $v)) { + if (preg_match('/^(CRM_|api_v3_|api_v4_|EnvTest|WebTest_|E2E_)/', $v)) { $argv[$k] = 'tests/phpunit/' . strtr($v, '_', '/') . '.php'; } elseif (preg_match('/^Civi\\\\/', $v)) { -- 2.25.1