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,