Extension unit tests broken in master
Overview
Currently unable to run any extension unit tests in master branch
Reproduction steps
- Download Flexmailer extension.
- try to run unit tests using phpunit6.
- Tests don't run.
Current behaviour
A bunch of notices show up as well
PHP Warning: file_get_contents(./xml/version.xml): failed to open stream: No such file or directory in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 16
PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 17
PHP Warning: simplexml_import_dom(): Invalid Nodetype to import in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 20
PHP Notice: Trying to get property 'version_no' of non-object in...civicrm/CRM/Core/CodeGen/Main.php on line 79
Parsing schema description ./xml/schema/Schema.xml
PHP Warning: file_get_contents(./xml/schema/Schema.xml): failed to open stream: No such file or directory in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 16
PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 17
PHP Warning: simplexml_import_dom(): Invalid Nodetype to import in...civicrm/CRM/Core/CodeGen/Util/Xml.php on line 20
Extracting database information
PHP Notice: Trying to get property 'name' of non-object in...civicrm/CRM/Core/CodeGen/Specification.php on line 70
Extracting table information
PHP Notice: Trying to get property 'tables' of non-object in...civicrm/CRM/Core/CodeGen/Specification.php on line 96
PHP Warning: Invalid argument supplied for foreach() in...civicrm/CRM/Core/CodeGen/Specification.php on line 96
Expected behaviour
PHP Unit tests run
Environment information
- CiviCRM: Master
- PHP: 7.1
- CMS: _Drupal 7.69