fix test
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user