*/
class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
protected $_paymentProcessorType;
- protected $_apiversion = 3;
protected $_params;
+ /**
+ * Set up class.
+ *
+ * @throws \CRM_Core_Exception
+ */
public function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
}
/**
- * Check with no name.
+ * Check create with no name specified.
*/
public function testPaymentProcessorCreateWithoutName() {
- $payProcParams = [
- 'is_active' => 1,
- ];
- $this->callAPIFailure('payment_processor', 'create', $payProcParams);
+ $this->callAPIFailure('payment_processor', 'create', ['is_active' => 1]);
}
/**
* Create payment processor.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testPaymentProcessorCreate() {
$params = $this->_params;
/**
* Update payment processor.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testPaymentProcessorUpdate() {
$params = $this->_params;
/**
* Check payment processor delete.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testPaymentProcessorDelete() {
$result = $this->callAPISuccess('payment_processor', 'create', $this->_params);
/**
* Check with valid params array.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testPaymentProcessorsGet() {
$params = $this->_params;