test fixes + new test data

This commit is contained in:
Dennis Eichhorn 2023-05-19 02:37:35 +00:00
parent c1cc2815c4
commit 9d8c8e1d1c
6 changed files with 35 additions and 7 deletions

View File

@ -14,7 +14,7 @@ declare(strict_types=1);
namespace Modules\ResearchDevelopment\Admin\Install; namespace Modules\ResearchDevelopment\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Application\ApplicationAbstract;
/** /**
* Navigation class. * Navigation class.
@ -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

@ -26,4 +26,11 @@ use phpOMS\Module\InstallerAbstract;
*/ */
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

@ -26,4 +26,11 @@ use phpOMS\Module\StatusAbstract;
*/ */
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

@ -26,4 +26,11 @@ use phpOMS\Module\UninstallerAbstract;
*/ */
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

@ -26,4 +26,11 @@ use phpOMS\Module\UpdaterAbstract;
*/ */
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

@ -11,8 +11,8 @@
"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": "Research & Development module.", "description": "Research & Development module.",
"directory": "ResearchDevelopment", "directory": "ResearchDevelopment",