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

24 lines
583 B
PHP

<?php
/**
* @group Core
*/
class ServiceTest extends ApiTestCase
{
private $configLicense = null;
public function tearDown() : void
{
if ($this->configLicense){
$this->di['config']['license'] = $this->configLicense;
}
}
public function testUninstallNotPro()
{
$this->configLicense = $this->di['config']['license'];
$this->expectException(Exception::class);
$service = $this->di['mod_service']('branding');
$this->di['config']['license'] = 'invalidLicense';
$service->uninstall();
}
}