From c20af6a379f1c07b939dd7de4bdb6617e44e7793 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Mon, 16 May 2016 21:46:34 +0200 Subject: [PATCH] Removed obsolete test output. --- CRM/Core/Payment/PayPalImpl.php | 2 +- api/v3/Setting.php | 8 -------- tests/phpunit/CRM/Contribute/Form/ContributionTest.php | 1 - tests/phpunit/CRM/Extension/Manager/ModuleTest.php | 3 +-- tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php | 1 - 5 files changed, 2 insertions(+), 13 deletions(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 77b057ab69..eddb6910a7 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -980,7 +980,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { //setting the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_VERBOSE, 1); + curl_setopt($ch, CURLOPT_VERBOSE, 0); //turning off the server and peer verification(TrustManager Concept). curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, Civi::settings()->get('verifySSL')); diff --git a/api/v3/Setting.php b/api/v3/Setting.php index e7cf7cb7b0..2e4cbb8fc2 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -113,18 +113,10 @@ function civicrm_api3_setting_getdefaults(&$params) { $defaults = array(); foreach ($domains as $domainID) { $defaults[$domainID] = array(); - $noDefaults = array(); foreach ($settings['values'] as $setting => $spec) { if (array_key_exists('default', $spec) && !is_null($spec['default'])) { $defaults[$domainID][$setting] = $spec['default']; } - else { - $noDefaults[$setting] = 1; - } - } - if (!empty($params['debug'])) { - // we are only tracking 'noDefaults' to help us check the xml - print_r($noDefaults); } } return civicrm_api3_create_success($defaults, $params, 'Setting', 'getfields'); diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index e35578df30..b05e88a349 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -240,7 +240,6 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase { */ public function testSubmitCreditCardFee() { $form = new CRM_Contribute_Form_Contribution(); - print_r($this->paymentProcessor); $this->paymentProcessor->setDoDirectPaymentResult(array('is_error' => 0, 'trxn_id' => 'tx', 'fee_amount' => .08)); $form->_mode = 'Live'; $form->testSubmit(array( diff --git a/tests/phpunit/CRM/Extension/Manager/ModuleTest.php b/tests/phpunit/CRM/Extension/Manager/ModuleTest.php index 241a8bea8b..282e912a5d 100644 --- a/tests/phpunit/CRM/Extension/Manager/ModuleTest.php +++ b/tests/phpunit/CRM/Extension/Manager/ModuleTest.php @@ -284,8 +284,7 @@ class CRM_Extension_Manager_ModuleTest extends CiviUnitTestCase { $_test_extension_manager_moduletest_counts[$module][$name] = 1 + (int) $_test_extension_manager_moduletest_counts[$module][$name]; } - const MODULE_TEMPLATE = " -assertEquals(0, $contributionRecur['is_email_receipt']); $this->assertEquals(date('Y-m-d'), date('Y-m-d', strtotime($contributionRecur['modified_date']))); $this->assertNotEmpty($contributionRecur['invoice_id']); - print_r($contributionRecur); // @todo fix this part! /* $this->assertEquals(CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', -- 2.25.1