From d53e6b767c5142efe9bc956de388a5f8057233b9 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 14 Jun 2021 15:11:21 +0300 Subject: [PATCH] test --- tests/unit/Espo/Core/Job/DataTest.php | 47 +++++++++++++++++++ .../Core/Job/QueueProcessorParamsTest.php | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 tests/unit/Espo/Core/Job/DataTest.php diff --git a/tests/unit/Espo/Core/Job/DataTest.php b/tests/unit/Espo/Core/Job/DataTest.php new file mode 100644 index 0000000000..3f2be4aade --- /dev/null +++ b/tests/unit/Espo/Core/Job/DataTest.php @@ -0,0 +1,47 @@ + '1']) + ->withTargetId('target-id') + ->withTargetType('target-type'); + + $this->assertEquals('1', $data->get('test')); + $this->assertEquals('target-id', $data->getTargetId()); + $this->assertEquals('target-type', $data->getTargetType()); + } +} diff --git a/tests/unit/Espo/Core/Job/QueueProcessorParamsTest.php b/tests/unit/Espo/Core/Job/QueueProcessorParamsTest.php index 281fbc3661..191809bf6e 100644 --- a/tests/unit/Espo/Core/Job/QueueProcessorParamsTest.php +++ b/tests/unit/Espo/Core/Job/QueueProcessorParamsTest.php @@ -27,7 +27,7 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -namespace tests\unit\Espo\Core\Console; +namespace tests\unit\Espo\Core\Job; use Espo\Core\{ Job\QueueProcessorParams,