Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
CDNTaxReceipts
Commits
a9633793
Commit
a9633793
authored
Mar 18, 2022
by
DaveD
Browse files
temp error prevention for 5.45
parent
35118750
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/CdntaxreceiptsBase.php
View file @
a9633793
...
...
@@ -29,6 +29,15 @@ class CdntaxreceiptsBase extends CiviCrmTestBase {
$this
->
setUpExtension
(
'org.civicrm.cdntaxreceipts'
);
$this
->
configureTaxReceiptSettings
();
// Temporarily turn off version_check for 5.45 since it pops up a
// box about a security release which the tests interpret as an error box.
if
(
!
\
CRM_Core_BAO_Domain
::
isDBVersionAtLeast
(
'5.46.alpha1'
))
{
$versioncheck
=
civicrm_api3
(
'Job'
,
'get'
,
[
'api_action'
=>
'version_check'
,
'return'
=>
[
'id'
]]);
foreach
(
$versioncheck
[
'values'
]
as
$vcheck
)
{
civicrm_api3
(
'Job'
,
'create'
,
[
'id'
=>
$vcheck
[
'id'
],
'is_active'
=>
0
]);
}
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment