From 27e098a103696d9eab8f10acb18852d1ac89ab90 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 8 Oct 2021 17:29:50 -0400 Subject: [PATCH] skip tests that require 5.43 if not on 5.43 --- tests/phpunit/CRM/Cdntaxreceipts/ReceiptsIssuedReportTest.php | 3 +++ .../Cdntaxreceipts/Tests/Mink/ReceiptsIssuedReportTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/phpunit/CRM/Cdntaxreceipts/ReceiptsIssuedReportTest.php b/tests/phpunit/CRM/Cdntaxreceipts/ReceiptsIssuedReportTest.php index 391344c..0b89fd6 100644 --- a/tests/phpunit/CRM/Cdntaxreceipts/ReceiptsIssuedReportTest.php +++ b/tests/phpunit/CRM/Cdntaxreceipts/ReceiptsIssuedReportTest.php @@ -7,6 +7,9 @@ class CRM_Cdntaxreceipts_ReceiptsIssuedReportTest extends CRM_Cdntaxreceipts_Bas public function setUp(): void { parent::setUp(); + if (!\CRM_Core_BAO_Domain::isDBVersionAtLeast('5.43.alpha1')) { + $this->markTestIncomplete('Test requires E_NOTICE fix that is only in 5.43+'); + } $this->setDeliveryMethod(CDNTAX_DELIVERY_PRINT_ONLY); } diff --git a/tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/ReceiptsIssuedReportTest.php b/tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/ReceiptsIssuedReportTest.php index 8cdcdfa..38ecd7e 100644 --- a/tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/ReceiptsIssuedReportTest.php +++ b/tests/phpunit/Mink/Civi/Cdntaxreceipts/Tests/Mink/ReceiptsIssuedReportTest.php @@ -14,6 +14,9 @@ class ReceiptsIssuedReportTest extends CdntaxreceiptsBase { public function setUp(): void { parent::setUp(); + if (!\CRM_Core_BAO_Domain::isDBVersionAtLeast('5.43.alpha1')) { + $this->markTestIncomplete('Test requires E_NOTICE fix that is only in 5.43+'); + } $this->createUserAndLogIn(); $this->contact = $this->createContact(); $this->setDeliveryMethod(CDNTAX_DELIVERY_PRINT_ONLY); -- GitLab