mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 04:53:46 +09:00
24 lines
575 B
PHP
24 lines
575 B
PHP
<?php
|
|
/**
|
|
* @group Core
|
|
*/
|
|
class Api_Client_ServiceDownloadableTest extends BBDbApiTestCase
|
|
{
|
|
protected $_initialSeedFile = 'services.xml';
|
|
|
|
public function testServiceDownload()
|
|
{
|
|
$this->setExpectedException('Box_Exception');
|
|
$data = array(
|
|
'order_id' => 1,
|
|
);
|
|
$bool = $this->_callOnService('send_file', $data);
|
|
$this->assertTrue($bool);
|
|
}
|
|
|
|
protected function _callOnService($method, $data)
|
|
{
|
|
$m = "serviceDownloadable_".$method;
|
|
return $this->api_client->{$m}($data);
|
|
}
|
|
} |