From 6a673446432771189096dd8dfe10deaa78c48ade Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 3 Apr 2021 19:52:53 +0300 Subject: [PATCH] acl test and fix --- tests/integration/Espo/Core/Acl/AclTest.php | 58 +++++++++++++++++++ .../AuthToken/AuthTokenManagerTest.php | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/integration/Espo/Core/Acl/AclTest.php diff --git a/tests/integration/Espo/Core/Acl/AclTest.php b/tests/integration/Espo/Core/Acl/AclTest.php new file mode 100644 index 0000000000..fe23e7cd77 --- /dev/null +++ b/tests/integration/Espo/Core/Acl/AclTest.php @@ -0,0 +1,58 @@ +getContainer()->get('aclManager'); + + $this->assertEquals( + 'assignedUserId', + $aclManager->getImplementation('Account')->getOwnerUserIdAttribute() + ); + + $this->assertEquals( + 'createdById', + $aclManager->getImplementation('Import')->getOwnerUserIdAttribute() + ); + + $this->assertEquals( + 'usersIds', + $aclManager->getImplementation('Email')->getOwnerUserIdAttribute() + ); + } +} diff --git a/tests/integration/Espo/Core/Authentication/AuthToken/AuthTokenManagerTest.php b/tests/integration/Espo/Core/Authentication/AuthToken/AuthTokenManagerTest.php index b44eda3575..2d1746ff8d 100644 --- a/tests/integration/Espo/Core/Authentication/AuthToken/AuthTokenManagerTest.php +++ b/tests/integration/Espo/Core/Authentication/AuthToken/AuthTokenManagerTest.php @@ -27,7 +27,7 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -namespace tests\integration\Espo\Core\Formula; +namespace tests\integration\Espo\Core\\Authentication\AuthToken; use Espo\Core\Authentication\AuthToken\AuthTokenData;