コード例 #1
0
 public function testSubscriptionAuthorization()
 {
     $this->senderMock->expects($this->once())->method('send')->with('http://test/front/service/rest/process', array('method' => 'authorization', 'params' => array('ALIAS' => 'A1', 'ALIASMODE' => 'subscription', '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')));
     $this->api->subscriptionAuthorization('A1', 100, 42, 'ident', '*****@*****.**', '1.1.1.1', 'desc', 'Firefox');
 }