*/
public static $populateOnce = FALSE;
- /**
- * Allow classes to state E-notice compliance
- */
- public $_eNoticeCompliant = TRUE;
-
/**
* @var boolean DBResetRequired allows skipping DB reset
* in specific test case. If you still need
// FIXME: look at it closer in second stage
// initialize the object once db is loaded
- CRM_Core_Config::$_mail = NULL;
$config = CRM_Core_Config::singleton();
+ Civi\Core\Container::singleton(TRUE);
// when running unit tests, use mockup user framework
$config->setUserFramework('UnitTests');
//flush component settings
CRM_Core_Component::getEnabledComponents(TRUE);
- if ($this->_eNoticeCompliant) {
- error_reporting(E_ALL);
- }
- else {
- error_reporting(E_ALL & ~E_NOTICE);
- }
+ error_reporting(E_ALL);
+
$this->_sethtmlGlobals();
}
'billing_mode' => 1,
), $params);
- $result = $this->callAPISuccess('payment_processor', 'create', $params);
+ $result = $this->callAPISuccess('PaymentProcessor', 'create', $params);
return $result['id'];
}
* Create Payment Processor.
*
* @return CRM_Financial_DAO_PaymentProcessor
- * instance of Payment Processsor
+ * instance of Payment Processor
*/
public function processorCreate() {
$processorParams = array(
'url_recur' => 'http://dummy.com',
'billing_mode' => 1,
);
- $paymentProcessor = CRM_Financial_BAO_PaymentProcessor::create($processorParams);
- return $paymentProcessor;
+ return CRM_Financial_BAO_PaymentProcessor::create($processorParams);
+ }
+
+ /**
+ * Create Payment Processor.
+ *
+ * @param array $processorParams
+ *
+ * @return \CRM_Core_Payment_Dummy
+ * Instance of Dummy Payment Processor
+ */
+ public function dummyProcessorCreate($processorParams = array()) {
+ $paymentProcessor = $this->processorCreate($processorParams);
+ return Civi\Payment\System::singleton()->getById($paymentProcessor->id);
}
/**
'is_primary' => 1,
'name' => 'Saint Helier St',
'county' => 'Marin',
- 'country' => 'United States',
+ 'country' => 'UNITED STATES',
'state_province' => 'Michigan',
'supplemental_address_1' => 'Hallmark Ct',
'supplemental_address_2' => 'Jersey Village',