test fixes + new test data

This commit is contained in:
Dennis Eichhorn 2023-05-19 02:37:35 +00:00
parent 2de76b0953
commit de80393b70
10 changed files with 67 additions and 39 deletions

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Admin\Install * @package Modules\IncomeStatement\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,14 +12,14 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Admin\Install; namespace Modules\IncomeStatement\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Application\ApplicationAbstract;
/** /**
* Navigation class. * Navigation class.
* *
* @package Modules\PL\Admin\Install * @package Modules\IncomeStatement\Admin\Install
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
@ -29,15 +29,15 @@ class Navigation
/** /**
* Install navigation providing * Install navigation providing
* *
* @param string $path Module path * @param ApplicationAbstract $app Application
* @param DatabasePool $dbPool Database pool for database interaction * @param string $path Module path
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function install(string $path, DatabasePool $dbPool) : void public static function install(ApplicationAbstract $app, string $path) : void
{ {
\Modules\Navigation\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Navigation.install.json']); \Modules\Navigation\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Navigation.install.json']);
} }
} }

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,18 +12,25 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Admin; namespace Modules\IncomeStatement\Admin;
use phpOMS\Module\InstallerAbstract; use phpOMS\Module\InstallerAbstract;
/** /**
* Installer class. * Installer class.
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class Installer extends InstallerAbstract final class Installer extends InstallerAbstract
{ {
/**
* Path of the file
*
* @var string
* @since 1.0.0
*/
public const PATH = __DIR__;
} }

View File

@ -1,7 +1,7 @@
<?php declare(strict_types=1); <?php declare(strict_types=1);
use Modules\PL\Controller\BackendController; use Modules\IncomeStatement\Controller\BackendController;
use Modules\PL\Models\PermissionState; use Modules\IncomeStatement\Models\PermissionState;
use phpOMS\Account\PermissionType; use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,18 +12,25 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Admin; namespace Modules\IncomeStatement\Admin;
use phpOMS\Module\StatusAbstract; use phpOMS\Module\StatusAbstract;
/** /**
* Status class. * Status class.
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class Status extends StatusAbstract final class Status extends StatusAbstract
{ {
/**
* Path of the file
*
* @var string
* @since 1.0.0
*/
public const PATH = __DIR__;
} }

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,18 +12,25 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Admin; namespace Modules\IncomeStatement\Admin;
use phpOMS\Module\UninstallerAbstract; use phpOMS\Module\UninstallerAbstract;
/** /**
* Uninstaller class. * Uninstaller class.
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class Uninstaller extends UninstallerAbstract final class Uninstaller extends UninstallerAbstract
{ {
/**
* Path of the file
*
* @var string
* @since 1.0.0
*/
public const PATH = __DIR__;
} }

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,18 +12,25 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Admin; namespace Modules\IncomeStatement\Admin;
use phpOMS\Module\UpdaterAbstract; use phpOMS\Module\UpdaterAbstract;
/** /**
* Updater class. * Updater class.
* *
* @package Modules\PL\Admin * @package Modules\IncomeStatement\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class Updater extends UpdaterAbstract final class Updater extends UpdaterAbstract
{ {
/**
* Path of the file
*
* @var string
* @since 1.0.0
*/
public const PATH = __DIR__;
} }

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL * @package Modules\IncomeStatement
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Controller; namespace Modules\IncomeStatement\Controller;
use phpOMS\Contract\RenderableInterface; use phpOMS\Contract\RenderableInterface;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
@ -22,7 +22,7 @@ use phpOMS\Views\View;
/** /**
* Budgeting controller class. * Budgeting controller class.
* *
* @package Modules\PL * @package Modules\IncomeStatement
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL * @package Modules\IncomeStatement
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Controller; namespace Modules\IncomeStatement\Controller;
use phpOMS\Module\ModuleAbstract; use phpOMS\Module\ModuleAbstract;
use phpOMS\Module\WebInterface; use phpOMS\Module\WebInterface;
@ -20,7 +20,7 @@ use phpOMS\Module\WebInterface;
/** /**
* Budgeting controller class. * Budgeting controller class.
* *
* @package Modules\PL * @package Modules\IncomeStatement
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\PL\Models * @package Modules\IncomeStatement\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -12,14 +12,14 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Modules\PL\Models; namespace Modules\IncomeStatement\Models;
use phpOMS\Stdlib\Base\Enum; use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\PL\Models * @package Modules\IncomeStatement\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0

View File

@ -1,8 +1,8 @@
{ {
"name": { "name": {
"id": 1006400000, "id": 1006400000,
"internal": "PL", "internal": "IncomeStatement",
"external": "P&L" "external": "Income Statement"
}, },
"category": "Finance", "category": "Finance",
"version": "1.0.0", "version": "1.0.0",
@ -11,11 +11,11 @@
"phpOMS-db": "1.0.0" "phpOMS-db": "1.0.0"
}, },
"creator": { "creator": {
"name": "Orange Management", "name": "Jingga",
"website": "www.spl1nes.com" "website": "jingga.app"
}, },
"description": "Budget Management module.", "description": "Budget Management module.",
"directory": "PL", "directory": "IncomeStatement",
"dependencies": { "dependencies": {
"Controlling": "*" "Controlling": "*"
}, },
@ -29,15 +29,15 @@
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
"from": "PL", "from": "IncomeStatement",
"file": "PL" "file": "IncomeStatement"
}, },
{ {
"pid": [ "pid": [
"/" "/"
], ],
"type": 5, "type": 5,
"from": "PL", "from": "IncomeStatement",
"for": "Navigation", "for": "Navigation",
"file": "Navigation" "file": "Navigation"
} }