From 3fdc6849731ca58ef6df8bbafaf1a2fa048879a7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 23:19:18 +0100 Subject: [PATCH] fix dependencies --- tests/Module/InstallerAbstractTest.php | 28 ++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/tests/Module/InstallerAbstractTest.php b/tests/Module/InstallerAbstractTest.php index 9d809a96c..7ac05e5de 100755 --- a/tests/Module/InstallerAbstractTest.php +++ b/tests/Module/InstallerAbstractTest.php @@ -16,8 +16,9 @@ namespace phpOMS\tests\Module; require_once __DIR__ . '/../Autoloader.php'; -use Model\CoreSettings; use phpOMS\Application\ApplicationAbstract; +use phpOMS\Config\OptionsTrait; +use phpOMS\Config\SettingsInterface; use phpOMS\Module\InstallerAbstract; use phpOMS\Module\ModuleInfo; @@ -56,7 +57,30 @@ final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase $this->installer::install( $app, new ModuleInfo(__DIR__), - new CoreSettings() + new class () implements SettingsInterface { + use OptionsTrait; + + public function get( + mixed $ids = null, + string | array $names = null, + int $app = null, + string $module = null, + int $group = null, + int $account = null + ) : mixed + { + return null; + } + + public function set(array $options, bool $store = false) : void + {} + + public function save(array $options = []) : void + {} + + public function create(array $options = []) : void + {} + } ); } }