public function shouldAddAuthorizeFieldsOnDoCreditCall()
{
$api = new Api(array('username' => 'theUsername', 'password' => 'thePassword', 'partner' => 'thePartner', 'vendor' => 'theVendor', 'tender' => 'theTender'), $this->createSuccessHttpClientStub(), $this->createHttpMessageFactory());
$result = $api->doCredit(array());
$this->assertArrayHasKey('USER', $result);
$this->assertEquals('theUsername', $result['USER']);
$this->assertArrayHasKey('PWD', $result);
$this->assertEquals('thePassword', $result['PWD']);
$this->assertArrayHasKey('PARTNER', $result);
$this->assertEquals('thePartner', $result['PARTNER']);
$this->assertArrayHasKey('VENDOR', $result);
$this->assertEquals('theVendor', $result['VENDOR']);
$this->assertArrayHasKey('TENDER', $result);
$this->assertEquals('theTender', $result['TENDER']);
}