From 13ecc17192c8bc808190f644158151faa0c74cad Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 24 Oct 2019 13:15:03 -0700 Subject: [PATCH] Unit tests - Fix test-run on 5.19.beta The conditional incorrectly tries to activate `api4` when running on 5.19.beta. --- ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php | 2 +- ext/afform/mock/tests/phpunit/api/v4/AfformTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php b/ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php index d7e9629908..d355dfe3af 100644 --- a/ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php +++ b/ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php @@ -18,7 +18,7 @@ class CRM_Afform_UtilTest extends \PHPUnit\Framework\TestCase implements Headles public function setUpHeadless() { return \Civi\Test::headless() ->installMe(__DIR__) - ->install(version_compare(CRM_Utils_System::version(), '5.19', '<') ? ['org.civicrm.api4'] : []) + ->install(version_compare(CRM_Utils_System::version(), '5.19.alpha1', '<') ? ['org.civicrm.api4'] : []) ->apply(); } diff --git a/ext/afform/mock/tests/phpunit/api/v4/AfformTestCase.php b/ext/afform/mock/tests/phpunit/api/v4/AfformTestCase.php index 9df221ba69..4847abf604 100644 --- a/ext/afform/mock/tests/phpunit/api/v4/AfformTestCase.php +++ b/ext/afform/mock/tests/phpunit/api/v4/AfformTestCase.php @@ -14,7 +14,7 @@ abstract class api_v4_AfformTestCase extends \PHPUnit\Framework\TestCase impleme */ public function setUpHeadless() { return \Civi\Test::headless() - ->install(version_compare(CRM_Utils_System::version(), '5.19', '<') ? ['org.civicrm.api4'] : []) + ->install(version_compare(CRM_Utils_System::version(), '5.19.alpha1', '<') ? ['org.civicrm.api4'] : []) ->install(['org.civicrm.afform', 'org.civicrm.afform-mock']) ->apply(); } -- 2.25.1