Skip to content
Snippets Groups Projects
Unverified Commit f6abe3a1 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #14241 from colemanw/enableApi4

Try enabling api4 extension in test suite
parents 8f35ee64 6457c1b9
Branches
Tags
No related merge requests found
......@@ -331,6 +331,12 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
// disable any left-over test extensions
CRM_Core_DAO::executeQuery('DELETE FROM civicrm_extension WHERE full_name LIKE "test.%"');
$extensions = \CRM_Extension_System::singleton()->getManager();
$api4Status = $extensions->getStatus('org.civicrm.api4');
if ($api4Status != $extensions::STATUS_INSTALLED && $api4Status != $extensions::STATUS_UNKNOWN) {
$extensions->enable(['org.civicrm.api4']);
}
// reset all the caches
CRM_Utils_System::flushCache();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment