mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
25 lines
663 B
PHP
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']);
|
|
}
|
|
} |