diff --git a/Models/EventTemplate.php b/Models/EventTemplate.php index 54eb700..4ec7b83 100755 --- a/Models/EventTemplate.php +++ b/Models/EventTemplate.php @@ -31,4 +31,30 @@ class EventTemplate extends Event * @since 1.0.0 */ private int $type = EventType::TEMPLATE; + + /** + * Get event type. + * + * @return int + * + * @since 1.0.0 + */ + public function getType() : int + { + return $this->type; + } + + /** + * Set event type. + * + * @param int $type Event type + * + * @return void + * + * @since 1.0.0 + */ + public function setType(int $type = EventType::TEMPLATE) : void + { + $this->type = $type; + } } 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',