test fixes

This commit is contained in:
Dennis Eichhorn 2023-04-17 19:44:57 +02:00
parent e58769983b
commit a54a1f1a5a
2 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,6 @@
} }
} }
}, },
"accounting_costcenter": { "accounting_costcenter": {
"name": "accounting_costcenter", "name": "accounting_costcenter",
"fields": { "fields": {
@ -93,7 +92,6 @@
} }
} }
}, },
"accounting_costobject": { "accounting_costobject": {
"name": "accounting_costobject", "name": "accounting_costobject",
"fields": { "fields": {
@ -154,7 +152,6 @@
} }
} }
}, },
"accounting_batch": { "accounting_batch": {
"name": "accounting_batch", "name": "accounting_batch",
"fields": { "fields": {

View File

@ -28,6 +28,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Application\ApplicationAbstract; use phpOMS\Application\ApplicationAbstract;
use phpOMS\Dispatcher\Dispatcher; use phpOMS\Dispatcher\Dispatcher;
use phpOMS\Event\EventManager; use phpOMS\Event\EventManager;
use phpOMS\Localization\L11nManager;
use phpOMS\Module\ModuleAbstract; use phpOMS\Module\ModuleAbstract;
use phpOMS\Module\ModuleManager; use phpOMS\Module\ModuleManager;
use phpOMS\Router\WebRouter; use phpOMS\Router\WebRouter;
@ -64,6 +65,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
$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->dispatcher = new Dispatcher($this->app);
$this->app->eventManager = new EventManager($this->app->dispatcher); $this->app->eventManager = new EventManager($this->app->dispatcher);
$this->app->l11nManager = new L11nManager();
$this->app->eventManager->importFromFile(__DIR__ . '/../../../../Web/Api/Hooks.php'); $this->app->eventManager->importFromFile(__DIR__ . '/../../../../Web/Api/Hooks.php');
$account = new Account(); $account = new Account();