mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-23 21:33:02 +09:00
31 lines
769 B
PHP
31 lines
769 B
PHP
<?php
|
|
/**
|
|
* @group Core
|
|
*/
|
|
class Box_Mod_Branding_ServiceTest extends ApiTestCase
|
|
{
|
|
private $configLicense = null;
|
|
|
|
public function tearDown()
|
|
{
|
|
if ($this->configLicense){
|
|
$this->di['config']['license'] = $this->configLicense;
|
|
}
|
|
}
|
|
|
|
public function testEvents()
|
|
{
|
|
$service = $this->di['mod_service']('branding');
|
|
$bool = $service->uninstall();
|
|
$this->assertTrue($bool);
|
|
}
|
|
|
|
public function testUninstallNotPro()
|
|
{
|
|
$this->configLicense = $this->di['config']['license'];
|
|
$this->setExpectedException('Exception');
|
|
$service = $this->di['mod_service']('branding');
|
|
$this->di['config']['license'] = 'invalidLicense';
|
|
$service->uninstall();
|
|
}
|
|
} |