From 97502bacf6c96707d82dd539a4834e4c6c13974a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 18 Jan 2016 22:17:04 -0500 Subject: [PATCH] CRM-17429 - Test fixes --- tests/phpunit/CRM/Core/PseudoConstantTest.php | 2 +- tests/phpunit/api/v3/ContributionTest.php | 2 +- tests/phpunit/api/v3/TaxContributionPageTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Core/PseudoConstantTest.php b/tests/phpunit/CRM/Core/PseudoConstantTest.php index 8c6d84ca1a..7cd2094ab5 100644 --- a/tests/phpunit/CRM/Core/PseudoConstantTest.php +++ b/tests/phpunit/CRM/Core/PseudoConstantTest.php @@ -88,7 +88,7 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { $pp_name = md5(microtime()); $api_params = array( 'domain_id' => 1, - 'payment_processor_type_id' => 10, + 'payment_processor_type_id' => 'Dummy', 'name' => $pp_name, 'user_name' => $pp_name, 'class_name' => 'Payment_Dummy', diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 2c230a75b2..927ee6d853 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -92,7 +92,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $this->_processorParams = array( 'domain_id' => 1, 'name' => 'Dummy', - 'payment_processor_type_id' => 10, + 'payment_processor_type_id' => CRM_Core_PseudoConstant::getKey('CRM_Financial_BAO_PaymentProcessor', 'payment_processor_type_id', 'Dummy'), 'financial_account_id' => 12, 'is_active' => 1, 'user_name' => '', diff --git a/tests/phpunit/api/v3/TaxContributionPageTest.php b/tests/phpunit/api/v3/TaxContributionPageTest.php index 90e48b54ae..2f3a00845d 100644 --- a/tests/phpunit/api/v3/TaxContributionPageTest.php +++ b/tests/phpunit/api/v3/TaxContributionPageTest.php @@ -160,7 +160,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase { $paymentProceParams = array( 'domain_id' => 1, 'name' => 'dummy' . substr(sha1(rand()), 0, 7), - 'payment_processor_type_id' => 10, + 'payment_processor_type_id' => CRM_Core_PseudoConstant::getKey('CRM_Financial_BAO_PaymentProcessor', 'payment_processor_type_id', 'Dummy'), 'financial_account_id' => 12, 'is_active' => 1, 'is_default' => 1, -- 2.25.1