mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-26 07:08:42 +00:00
fix tests
This commit is contained in:
parent
e18bf518cd
commit
8f62983878
|
|
@ -46,7 +46,7 @@ class AdminTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
$account = AccountMapper::getWithPermissions(1);
|
||||
$nav = Navigation::getInstance($request, $account, $GLOBALS['dbpool'], 1, 'Backend')->getNav();
|
||||
$moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules');
|
||||
$moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');
|
||||
$modules = $moduleManager->getInstalledModules(false);
|
||||
|
||||
self::assertGreaterThan(0, \count($nav));
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class SearchControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$this->app->orgId = 1;
|
||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||
$this->app->appSettings = new CoreSettings($this->app->dbPool->get());
|
||||
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules');
|
||||
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');
|
||||
$this->app->dispatcher = new Dispatcher($this->app);
|
||||
$this->app->l11nManager = new L11nManager($this->app->appName);
|
||||
$this->app->eventManager = new EventManager($this->app->dispatcher);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user