projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use api success & api failure & apiSetup for cleaner tests
[civicrm-core.git]
/
tests
/
phpunit
/
api
/
v3
/
PaymentProcessorTest.php
diff --git
a/tests/phpunit/api/v3/PaymentProcessorTest.php
b/tests/phpunit/api/v3/PaymentProcessorTest.php
index 4f79205213da56249369786d453606a81c685001..77b6611c2af3183ecf4d7d1307460a7e7b472386 100644
(file)
--- a/
tests/phpunit/api/v3/PaymentProcessorTest.php
+++ b/
tests/phpunit/api/v3/PaymentProcessorTest.php
@@
-90,7
+90,7
@@
class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
);
$result = civicrm_api('payment_processor', 'create', $payProcParams);
);
$result = civicrm_api('payment_processor', 'create', $payProcParams);
- $this->assert
Equals($result['is_error'], 1
);
+ $this->assert
APIFailure($result
);
}
/**
}
/**
@@
-117,7
+117,7
@@
class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
require_once 'api/v3/examples/PaymentProcessorCreate.php';
$result = payment_processor_create_example();
$expectedResult = payment_processor_create_expectedresult();
require_once 'api/v3/examples/PaymentProcessorCreate.php';
$result = payment_processor_create_example();
$expectedResult = payment_processor_create_expectedresult();
- $this->assert
Equals($result['is_error'], 0
);
+ $this->assert
APISuccess($result
);
}
///////////////// civicrm_payment_processor_delete methods
}
///////////////// civicrm_payment_processor_delete methods
@@
-135,7
+135,7
@@
class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
$result = civicrm_api('payment_processor', 'delete', $params);
$this->documentMe($params, $result, __FUNCTION__, __FILE__);
$result = civicrm_api('payment_processor', 'delete', $params);
$this->documentMe($params, $result, __FUNCTION__, __FILE__);
- $this->assert
Equals($result['is_error'], 0
);
+ $this->assert
APISuccess($result
);
}
///////////////// civicrm_payment_processors_get methods
}
///////////////// civicrm_payment_processors_get methods