Skip to content

Commit eef5e6f

Browse files
committed
* Add possibility to save exceptions in file
1 parent 484ed6d commit eef5e6f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Tests/Processor/JobProcessorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use CodeRhapsodie\DataflowBundle\Entity\Job;
88
use CodeRhapsodie\DataflowBundle\Event\Events;
99
use CodeRhapsodie\DataflowBundle\Event\ProcessingEvent;
10+
use CodeRhapsodie\DataflowBundle\Gateway\JobGateway;
1011
use CodeRhapsodie\DataflowBundle\Processor\JobProcessor;
1112
use CodeRhapsodie\DataflowBundle\Registry\DataflowTypeRegistryInterface;
1213
use CodeRhapsodie\DataflowBundle\Repository\JobRepository;
@@ -20,14 +21,16 @@ class JobProcessorTest extends TestCase
2021
private JobRepository|MockObject $repository;
2122
private DataflowTypeRegistryInterface|MockObject $registry;
2223
private EventDispatcherInterface|MockObject $dispatcher;
24+
private JobGateway|MockObject $jobGateway;
2325

2426
protected function setUp(): void
2527
{
2628
$this->repository = $this->createMock(JobRepository::class);
2729
$this->registry = $this->createMock(DataflowTypeRegistryInterface::class);
2830
$this->dispatcher = $this->createMock(EventDispatcherInterface::class);
31+
$this->jobGateway = $this->createMock(JobGateway::class);
2932

30-
$this->processor = new JobProcessor($this->repository, $this->registry, $this->dispatcher);
33+
$this->processor = new JobProcessor($this->repository, $this->registry, $this->dispatcher, $this->jobGateway);
3134
}
3235

3336
public function testProcess()

0 commit comments

Comments
 (0)