test fixes and changes for release

This commit is contained in:
Dennis Eichhorn 2022-12-25 00:06:17 +01:00
parent 9e44af2ac4
commit 8a9385bb2e
2 changed files with 73 additions and 1 deletions

View File

@ -22,6 +22,7 @@ use Modules\Media\Models\NullMedia;
use Modules\Profile\Models\ContactElement; use Modules\Profile\Models\ContactElement;
use Modules\Profile\Models\NullContactElement; use Modules\Profile\Models\NullContactElement;
use Modules\Profile\Models\Profile; use Modules\Profile\Models\Profile;
use Modules\Admin\Models\Account;
/** /**
* Supplier class. * Supplier class.
@ -58,7 +59,7 @@ class Supplier
/** /**
* Attributes. * Attributes.
* *
* @var int[]|SupplierAttribute[] * @var SupplierAttribute[]
* @since 1.0.0 * @since 1.0.0
*/ */
private array $attributes = []; private array $attributes = [];
@ -221,6 +222,58 @@ class Supplier
return $this->address; return $this->address;
} }
/**
* Add partner
*
* @param Account $partner Partner
*
* @return void
*
* @since 1.0.0
*/
public function addPartner(Account $partner) : void
{
$this->partners[] = $partner;
}
/**
* Get partners
*
* @return Account[]
*
* @since 1.0.0
*/
public function getPartners() : array
{
return $this->partners;
}
/**
* Add attribute to supplier
*
* @param SupplierAttribute $attribute Attribute
*
* @return void
*
* @since 1.0.0
*/
public function addAttribute(SupplierAttribute $attribute) : void
{
$this->attributes[] = $attribute;
}
/**
* Get attributes
*
* @return SupplierAttribute[]
*
* @since 1.0.0
*/
public function getAttributes() : array
{
return $this->attributes;
}
/** /**
* Get contacts. * Get contacts.
* *

View File

@ -257,6 +257,25 @@ $CONFIG = [
'root' => '/', 'root' => '/',
'https' => false, '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' => [ 'socket' => [
'master' => [ 'master' => [
'host' => '127.0.0.1', 'host' => '127.0.0.1',