From cdd38596e9e6bfc9d05cf92c9180653000b4af95 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 9 May 2023 07:40:00 +1000 Subject: [PATCH] Update Unit tests to handle for change in label --- tests/phpunit/CRM/Export/BAO/ExportTest.php | 4 ++-- tests/phpunit/CRM/Utils/TokenConsistencyTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Export/BAO/ExportTest.php b/tests/phpunit/CRM/Export/BAO/ExportTest.php index dcbdd770de..ed4b1e51f6 100644 --- a/tests/phpunit/CRM/Export/BAO/ExportTest.php +++ b/tests/phpunit/CRM/Export/BAO/ExportTest.php @@ -306,7 +306,7 @@ class CRM_Export_BAO_ExportTest extends CiviUnitTestCase { 'Member Since' => $membership['join_date'], 'Membership Start Date' => $membership['start_date'], 'Membership Expiration Date' => $membership['end_date'], - 'Source' => 'Payment', + 'Membership Source' => 'Payment', 'Membership Status' => 'Pending', 'Membership ID' => '2', 'Primary Member ID' => '', @@ -2455,7 +2455,7 @@ class CRM_Export_BAO_ExportTest extends CiviUnitTestCase { 85 => 'Member Since', 86 => 'Membership Start Date', 87 => 'Membership Expiration Date', - 88 => 'Source', + 88 => 'Membership Source', 89 => 'Membership Status', 90 => 'Membership ID', 91 => 'Primary Member ID', diff --git a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php index 29bd312fed..c87775d79d 100644 --- a/tests/phpunit/CRM/Utils/TokenConsistencyTest.php +++ b/tests/phpunit/CRM/Utils/TokenConsistencyTest.php @@ -567,7 +567,7 @@ contribution_recur.payment_instrument_id:name :Check public function getTokensAdvertisedByTokenProcessorButNotLegacy(): array { return [ '{membership.custom_1}' => 'Enter text here :: Group with field text', - '{membership.source}' => 'Source', + '{membership.source}' => 'Membership Source', '{membership.status_override_end_date}' => 'Status Override End Date', ]; } -- 2.25.1