public function testExportWithDateInterval()
 {
     $this->senderMock->expects($this->once())->method('send')->with('http://test/front/service/rest/export', array('method' => 'exportTransactions', 'params' => array('IDENTIFIER' => 'i', 'STARTDATE' => '2014-01-02', 'ENDDATE' => '2014-01-05', 'OPERATIONTYPE' => 'exportTransactions', 'COMPRESSION' => 'GZIP', 'MAILTO' => '*****@*****.**', 'VERSION' => '2.0', 'HASH' => 'dummy')));
     $this->api->exportTransactions(array('2014-01-02', '2014-01-05'), '*****@*****.**');
 }
 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());
 }
 public function testFormAuthorization()
 {
     $this->renderMock->expects($this->once())->method('render')->with(array('AMOUNT' => 100, 'IDENTIFIER' => 'i', 'OPERATIONTYPE' => 'authorization', 'ORDERID' => 42, 'CLIENTIDENT' => 'ident', 'VERSION' => '2.0', 'HASH' => 'dummy', 'DESCRIPTION' => 'desc'));
     $this->api->buildAuthorizationFormButton(100, 42, 'ident', 'desc');
 }