From 9bb5c4bda7040add2c4c6fdcb03c57fac13a8399 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 23 Feb 2022 09:44:53 -0500 Subject: [PATCH] convert to trait --- tests/phpunit/CRM/Contribute/Form/CancelSubscriptionTest.php | 4 +++- tests/phpunit/CRM/Contribute/Form/UpdateSubscriptionTest.php | 4 +++- tests/phpunit/CRMTraits/Contribute/RecurFormsTrait.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/CRM/Contribute/Form/CancelSubscriptionTest.php b/tests/phpunit/CRM/Contribute/Form/CancelSubscriptionTest.php index 2e6d658412..fab2a8e1fb 100644 --- a/tests/phpunit/CRM/Contribute/Form/CancelSubscriptionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/CancelSubscriptionTest.php @@ -12,7 +12,9 @@ /** * Class CRM_Contribute_Form_UpdateSubscriptionTest */ -class CRM_Contribute_Form_CancelSubscriptionTest extends CRM_Contribute_Form_RecurForms { +class CRM_Contribute_Form_CancelSubscriptionTest extends CiviUnitTestCase { + + use CRMTraits_Contribute_RecurFormsTrait; /** * Test the mail sent on update. diff --git a/tests/phpunit/CRM/Contribute/Form/UpdateSubscriptionTest.php b/tests/phpunit/CRM/Contribute/Form/UpdateSubscriptionTest.php index 7cb3d3ee52..6f5a65ec73 100644 --- a/tests/phpunit/CRM/Contribute/Form/UpdateSubscriptionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/UpdateSubscriptionTest.php @@ -12,7 +12,9 @@ /** * Class CRM_Contribute_Form_UpdateSubscriptionTest */ -class CRM_Contribute_Form_UpdateSubscriptionTest extends CRM_Contribute_Form_RecurForms { +class CRM_Contribute_Form_UpdateSubscriptionTest extends CiviUnitTestCase { + + use CRMTraits_Contribute_RecurFormsTrait; /** * Test the mail sent on update. diff --git a/tests/phpunit/CRMTraits/Contribute/RecurFormsTrait.php b/tests/phpunit/CRMTraits/Contribute/RecurFormsTrait.php index 0126e41822..bfd35cdd47 100644 --- a/tests/phpunit/CRMTraits/Contribute/RecurFormsTrait.php +++ b/tests/phpunit/CRMTraits/Contribute/RecurFormsTrait.php @@ -10,9 +10,9 @@ */ /** - * Class CRM_Contribute_Form_UpdateSubscriptionTest + * Trait CRMTraits_Contribute_RecurFormsTrait */ -class CRM_Contribute_Form_RecurForms extends CiviUnitTestCase { +trait CRMTraits_Contribute_RecurFormsTrait { /** * @var int -- 2.25.1