From 29c2a63bd146be91dc91b863786b6e56c7b7b980 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/Promotion.php | 14 ++++++++++++++ Models/PromotionAttributeType.php | 12 ++++++++++++ tests/Bootstrap.php | 19 +++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/Models/Promotion.php b/Models/Promotion.php index 9791d93..b5058a3 100755 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -373,6 +373,20 @@ class Promotion return $this->attributes; } + /** + * Get relations to the promotions. + * + * This includes customers, partners, ... + * + * @return array + * + * @since 1.0.0 + */ + public function getRelations() : array + { + return $this->accountRelations; + } + /** * {@inheritdoc} */ diff --git a/Models/PromotionAttributeType.php b/Models/PromotionAttributeType.php index b873672..69a9f02 100755 --- a/Models/PromotionAttributeType.php +++ b/Models/PromotionAttributeType.php @@ -147,6 +147,18 @@ class PromotionAttributeType 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',