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

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);
}
}