From 74c1a5c0da81715c6cf78ca6ba59024a505165c5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 25 Sep 2023 14:27:19 +0000 Subject: [PATCH] fix tests --- Admin/Install/Navigation.install.json | 33 ++++++++++++ Admin/Install/Navigation.php | 43 +++++++++++++++ Admin/Installer.php | 36 +++++++++++++ Admin/Routes/Web/Backend.php | 16 ++++++ Admin/Status.php | 36 +++++++++++++ Admin/Uninstaller.php | 36 +++++++++++++ Admin/Updater.php | 36 +++++++++++++ Controller/BackendController.php | 33 ++++++++++++ Controller/Controller.php | 76 +++++++++++++++++++++++++++ info.json | 46 ++++++++++++++++ tests/Admin/AdminTest.php | 2 +- 11 files changed, 392 insertions(+), 1 deletion(-) create mode 100644 Admin/Install/Navigation.install.json create mode 100644 Admin/Install/Navigation.php create mode 100644 Admin/Installer.php create mode 100644 Admin/Routes/Web/Backend.php create mode 100644 Admin/Status.php create mode 100644 Admin/Uninstaller.php create mode 100644 Admin/Updater.php create mode 100644 Controller/BackendController.php create mode 100644 Controller/Controller.php create mode 100644 info.json diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json new file mode 100644 index 0000000..fac5219 --- /dev/null +++ b/Admin/Install/Navigation.install.json @@ -0,0 +1,33 @@ +[ + { + "id": 1008401001, + "pid": "/", + "type": 2, + "subtype": 1, + "name": "CashManagement", + "uri": "{/base}/cash/list", + "target": "self", + "icon": null, + "order": 65, + "from": "CashManagement", + "permission": { "permission": 2, "category": null, "element": null }, + "parent": 1002601001, + "children": [ + { + "id": 1008402001, + "pid": "/cash", + "type": 3, + "subtype": 1, + "name": "List", + "uri": "{/base}/cash/list", + "target": "self", + "icon": null, + "order": 1, + "from": "CashManagement", + "permission": { "permission": 2, "category": null, "element": null }, + "parent": 1008401001, + "children": [] + } + ] + } +] diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php new file mode 100644 index 0000000..087bd33 --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,43 @@ + __DIR__ . '/Navigation.install.json']); + } +} diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..e091f4e --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,36 @@ +