CRM-17429 - Test fixes
authorColeman Watts <coleman@civicrm.org>
Tue, 19 Jan 2016 03:17:04 +0000 (22:17 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 19 Jan 2016 03:17:04 +0000 (22:17 -0500)
tests/phpunit/CRM/Core/PseudoConstantTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php

index 8c6d84ca1a33558651488991481c81e90d48b006..7cd2094ab5cfb6d80e8df7b2b1eccb269dfc7c76 100644 (file)
@@ -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',
index 2c230a75b27b61dcf32a3e05b4ebc86bf9715141..927ee6d853f2a8a262e238f8dcbc27e6b7acbf76 100644 (file)
@@ -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' => '',
index 90e48b54ae395f20384ca206ae67fb347c6cc0ce..2f3a00845ddbd0c6356cdf7cc92976a2f0a1139d 100644 (file)
@@ -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,