Skip to content
Snippets Groups Projects
Commit 440ee692 authored by Seamus Lee's avatar Seamus Lee
Browse files

Fix test failures

parent 44f76389
No related branches found
No related tags found
No related merge requests found
......@@ -751,7 +751,8 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component {
}
// if db.ver > code.ver, sth really wrong
if (version_compare($dbVersion, CRM_Utils_System::version()) > 0) {
$codeVersion = CRM_Utils_System::version();
if (version_compare($dbVersion, $codeVersion) > 0) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__,
ts('Your database is marked with an unexpected version number: %1. The v%2 codebase may not be compatible with your database state.
......
......@@ -44,6 +44,8 @@ class Data {
\Civi\Test::schema()->setStrict(TRUE);
});
civicrm_api('setting', 'create', ['installed' => 1, 'domain_id' => 'all', 'version' => 3]);
// Rebuild triggers
civicrm_api('system', 'flush', ['version' => 3, 'triggers' => 1]);
......
......@@ -963,4 +963,4 @@ INSERT INTO civicrm_navigation
VALUES
( @domainID, CONCAT('civicrm/report/instance/', @instanceID,'&reset=1'), 'Mailing Detail Report', 'Mailing Detail Report', 'administer CiviMail', 'OR', @reportlastID, '1', NULL, @instanceID+2 );
UPDATE civicrm_report_instance SET navigation_id = LAST_INSERT_ID() WHERE id = @instanceID;
UPDATE civicrm_domain SET version = '5.28.alpha1';
UPDATE civicrm_domain SET version = '5.27.2';
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