Ejemplo n.º 1
0
 public function testAuthorization()
 {
     $this->senderMock->expects($this->once())->method('send')->with('http://test/front/service/rest/process', array('method' => 'authorization', 'params' => array('AMOUNT' => 100, 'IDENTIFIER' => 'i', 'OPERATIONTYPE' => 'authorization', 'ORDERID' => 42, 'CLIENTIDENT' => 'ident', 'CLIENTEMAIL' => '*****@*****.**', 'CLIENTIP' => '1.1.1.1', 'CLIENTUSERAGENT' => 'Firefox', 'VERSION' => '2.0', 'HASH' => 'dummy', 'DESCRIPTION' => 'desc', 'CARDCODE' => '1111222233334444', 'CARDCVV' => '123', 'CARDVALIDITYDATE' => '01-12', 'CARDFULLNAME' => 'john doe')));
     $this->api->authorization('1111222233334444', '01-12', '123', 'john doe', 100, 42, 'ident', '*****@*****.**', '1.1.1.1', 'desc', 'Firefox');
 }