From c4c56ac0312491ab5e4ee09444932ca722629a38 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 25 Dec 2022 00:06:17 +0100 Subject: [PATCH] test fixes and changes for release --- Models/ProjectAttributeType.php | 12 ++++++++++++ tests/Bootstrap.php | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/Models/ProjectAttributeType.php b/Models/ProjectAttributeType.php index c465996..95d4568 100755 --- a/Models/ProjectAttributeType.php +++ b/Models/ProjectAttributeType.php @@ -147,6 +147,18 @@ class ProjectAttributeType implements \JsonSerializable $this->fields = $fields; } + /** + * Get default values + * + * @return array + * + * @sicne 1.0.0 + */ + public function getDefaults() : array + { + return $this->defaults; + } + /** * {@inheritdoc} */ diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index d46fd31..b5d36a8 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -257,6 +257,25 @@ $CONFIG = [ 'root' => '/', 'https' => false, ], + 'app' => [ + 'path' => __DIR__, + 'default' => [ + 'app' => 'Backend', + 'id' => 'backend', + 'lang' => 'en', + 'theme' => 'Backend', + 'org' => 1, + ], + 'domains' => [ + '127.0.0.1' => [ + 'app' => 'Backend', + 'id' => 'backend', + 'lang' => 'en', + 'theme' => 'Backend', + 'org' => 1, + ], + ], + ], 'socket' => [ 'master' => [ 'host' => '127.0.0.1',