diff --git a/tests/unit/Espo/Core/Select/AccessControl/FiltersTest.php b/tests/unit/Espo/Core/Select/AccessControl/FiltersTest.php index 4466704c97..1b29d654b7 100644 --- a/tests/unit/Espo/Core/Select/AccessControl/FiltersTest.php +++ b/tests/unit/Espo/Core/Select/AccessControl/FiltersTest.php @@ -129,7 +129,21 @@ class FiltersTest extends TestCase 'midKeys' => ['nId', 'fId'], 'relationName' => 'TestContact' ], 'contacts') - ] + ], + [ + 'account', + RelationDefs::fromRaw([ + 'type' => RelationType::BELONGS_TO, + 'entity' => Account::ENTITY_TYPE, + ], 'account') + ], + [ + 'contact', + RelationDefs::fromRaw([ + 'type' => RelationType::BELONGS_TO, + 'entity' => Contact::ENTITY_TYPE, + ], 'contact') + ], ]); $this->queryBuilder @@ -204,7 +218,21 @@ class FiltersTest extends TestCase 'midKeys' => ['nId', 'fId'], 'relationName' => 'TestContact' ], 'contacts') - ] + ], + [ + 'account', + RelationDefs::fromRaw([ + 'type' => RelationType::BELONGS_TO, + 'entity' => Account::ENTITY_TYPE, + ], 'account') + ], + [ + 'contact', + RelationDefs::fromRaw([ + 'type' => RelationType::BELONGS_TO, + 'entity' => Contact::ENTITY_TYPE, + ], 'contact') + ], ]); $this->queryBuilder