mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
22 lines
447 B
PHP
22 lines
447 B
PHP
<?php
|
|
class BBModTestCase extends BBDbApiTestCase
|
|
{
|
|
protected $_mod = null;
|
|
|
|
public function setUp(): void
|
|
{
|
|
global $di;
|
|
$mod = $di['mod']($this->_mod);
|
|
if(!$mod->isCore()) {
|
|
$mod->install();
|
|
}
|
|
|
|
parent::setUp();
|
|
|
|
try {
|
|
$this->api_admin->extension_activate(array('id'=>$this->_mod,'type'=>'mod'));
|
|
} catch(Exception $e) {
|
|
|
|
}
|
|
}
|
|
} |