protected $_apiversion = 3;
protected $_params;
- function setUp() {
+ public function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
// Create dummy processor
/**
* Check with no name
*/
- function testPaymentProcessorCreateWithoutName() {
+ public function testPaymentProcessorCreateWithoutName() {
$payProcParams = array(
'is_active' => 1,
);
/**
* Create payment processor
*/
- function testPaymentProcessorCreate() {
+ public function testPaymentProcessorCreate() {
$params = $this->_params;
$result = $this->callAPIAndDocument('payment_processor', 'create', $params, __FUNCTION__, __FILE__);
$this->assertNotNull($result['id'], 'in line ' . __LINE__);
/**
* Test using example code
*/
- function testPaymentProcessorCreateExample() {
+ public function testPaymentProcessorCreateExample() {
require_once 'api/v3/examples/PaymentProcessor/Create.php';
$result = payment_processor_create_example();
$expectedResult = payment_processor_create_expectedresult();
/**
* Check payment processor delete
*/
- function testPaymentProcessorDelete() {
+ public function testPaymentProcessorDelete() {
$id = $this->testPaymentProcessorCreate();
$params = array(
'id' => $id,
/**
* Check with valid params array.
*/
- function testPaymentProcessorsGet() {
+ public function testPaymentProcessorsGet() {
$params = $this->_params;
$params['user_name'] = 'test@test.com';
$this->callAPISuccess('payment_processor', 'create', $params);