From 95fb269fd544c10e5bdb8054cef509a3f57175fc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 17 Apr 2023 19:44:57 +0200 Subject: [PATCH] test fixes --- Controller/ApiController.php | 2 -- tests/Controller/ApiControllerTest.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 314463f..722e1a1 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -150,8 +150,6 @@ final class ApiController extends Controller $response->set('news_create', new FormValidation($val)); $response->header->status = RequestStatusCode::R_400; - var_dump($val); - return; } diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 531553d..fe35c77 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -23,6 +23,7 @@ use phpOMS\Account\PermissionType; use phpOMS\Application\ApplicationAbstract; use phpOMS\Dispatcher\Dispatcher; use phpOMS\Event\EventManager; +use phpOMS\Localization\L11nManager; use phpOMS\Module\ModuleManager; use phpOMS\Router\WebRouter; use phpOMS\Utils\TestUtils; @@ -55,6 +56,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../Modules/'); $this->app->dispatcher = new Dispatcher($this->app); $this->app->eventManager = new EventManager($this->app->dispatcher); + $this->app->l11nManager = new L11nManager(); $this->app->eventManager->importFromFile(__DIR__ . '/../../../Web/Api/Hooks.php'); $account = new Account();