I'm hitting an issue where we run unit tests on our own code base and this is hitting file-not-found
We don't package the tests directory with the tarball so it's not there.
The alternative is to move it to the Civi\test folder if it's important that
it be there for non-core tests
);
}
- if (defined('CIVICRM_UF') && CIVICRM_UF === 'UnitTests') {
+ if (defined('CIVICRM_UF') && CIVICRM_UF === 'UnitTests'
+ && file_exists('tests/phpunit/api/v4/services.xml')
+ ) {
$loader->load('tests/phpunit/api/v4/services.xml');
}
}