Files
FOSSBilling/tests/integration/bb-modules/mod_servicedomain/Api_GuestTest.php
T
2020-08-18 21:12:03 +02:00

30 lines
752 B
PHP

<?php
/**
* @group Core
*/
class Api_Guest_ServiceDomainTest extends BBDbApiTestCase
{
protected $_initialSeedFile = 'services.xml';
public function testGuestServiceDomain()
{
$data = array(
'sld' => 'phpunit',
'tld' => '.com',
);
$bool = $this->api_guest->servicedomain_check($data);
$this->assertTrue($bool);
$bool = $this->api_guest->servicedomain_can_be_transferred($data);
$this->assertTrue($bool);
$array = $this->api_guest->servicedomain_pricing($data);
$this->assertIsArray($array);
}
public function testTlds()
{
$array = $this->api_guest->servicedomain_tlds();
$this->assertIsArray($array);
}
}