From 0271dedddeda599102d17d70155718442a4250bd Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 30 Apr 2024 14:25:46 +0300 Subject: [PATCH] fix test --- .../integration/Espo/Core/FieldProcessing/ReminderTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/Espo/Core/FieldProcessing/ReminderTest.php b/tests/integration/Espo/Core/FieldProcessing/ReminderTest.php index a371104a2c..6305e2e008 100644 --- a/tests/integration/Espo/Core/FieldProcessing/ReminderTest.php +++ b/tests/integration/Espo/Core/FieldProcessing/ReminderTest.php @@ -31,6 +31,7 @@ namespace tests\integration\Espo\Core\FieldProcessing; use Espo\Core\Field\DateTime; use Espo\Core\ORM\EntityManager; +use Espo\Entities\User; use Espo\Modules\Crm\Entities\Reminder; use tests\integration\Core\BaseTestCase; @@ -39,11 +40,13 @@ class ReminderTest extends BaseTestCase public function testOne(): void { /* @var $entityManager EntityManager */ - $entityManager = $this->getContainer()->get('entityManager'); + $entityManager = $this->getContainer()->getByClass(EntityManager::class); + + $user = $this->getContainer()->getByClass(User::class); $meeting = $entityManager->createEntity('Meeting', [ 'dateStart' => DateTime::createNow()->modify('+1 day')->toString(), - 'usersIds' => ['1'], + 'usersIds' => [$user->getId()], 'reminders' => [ (object) [ 'type' => 'Popup',