From 186ce891f7b4eee0b14916574de6e8d5cdaef49f Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 7 Nov 2024 11:32:30 +0200 Subject: [PATCH] fix test --- .../Core/Select/AccessControl/FiltersTest.php | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) 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