Files
FOSSBilling/tests/integration/bb-modules/mod_invoice/Api_ClientTest.php
T
2014-11-03 09:00:47 +02:00

25 lines
663 B
PHP

<?php
/**
* @group Core
*/
class Box_Mod_Invoice_Api_ClientTest extends BBModTestCase
{
protected $_mod = 'invoice';
protected $_initialSeedFile = 'mod_invoice.xml';
public function testUpdate()
{
$data = array(
'hash' => 'hash2',
);
$array = $this->api_client->invoice_get($data);
$this->assertInternalType('array', $array);
$data['gateway_id'] = 1;
$bool = $this->api_client->invoice_update($data);
$this->assertTrue($bool);
$array = $this->api_client->invoice_get($data);
$this->assertEquals(1, $array['gateway_id']);
}
}