예제 #1
0
 public function testSetDefaultVersion()
 {
     $this->api->setVersion('3.0');
     $this->renderMock->expects($this->once())->method('render')->with(array('AMOUNT' => 100, 'IDENTIFIER' => 'i', 'OPERATIONTYPE' => 'payment', 'ORDERID' => 42, 'CLIENTIDENT' => 'ident', 'VERSION' => '3.0', 'HASH' => 'dummy', 'DESCRIPTION' => 'desc'));
     $this->api->buildPaymentFormButton(100, 42, 'ident', 'desc', array());
 }
예제 #2
0
 public function testNTimeFormPayment()
 {
     $this->renderMock->expects($this->once())->method('render')->with(array('AMOUNTS' => array('2014-01-16' => 100, '2014-02-16' => 100, '2014-03-16' => 100), 'IDENTIFIER' => 'i', 'OPERATIONTYPE' => 'payment', 'ORDERID' => 42, 'CLIENTIDENT' => 'ident', 'VERSION' => '2.0', 'HASH' => 'dummy', 'DESCRIPTION' => 'desc'));
     $this->api->buildPaymentFormButton(array('2014-01-16' => 100, '2014-02-16' => 100, '2014-03-16' => 100), 42, 'ident', 'desc');
 }