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
eeecc4c8
Commit
eeecc4c8
authored
Mar 18, 2022
by
DaveD
Browse files
Merge branch 'temp-5.45' into 'master'
Testing temporary red error box silencing for 5.45 See merge request
!172
parents
35118750
a9633793
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/CdntaxreceiptsBase.php
View file @
eeecc4c8
...
...
@@ -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