@@ -169,7 +169,7 @@ public function testCreateChildJobShouldCreateAndSaveJobAndPublishRecalculateRoo
169
169
$ producer = $ this ->createProducerMock ();
170
170
$ producer
171
171
->expects ($ this ->once ())
172
- ->method ('sendEvent ' )
172
+ ->method ('sendCommand ' )
173
173
->with (Commands::CALCULATE_ROOT_JOB_STATUS , ['jobId ' => 12345 ])
174
174
;
175
175
@@ -246,7 +246,7 @@ public function testStartJobShouldUpdateJobWithRunningStatusAndStartAtTime()
246
246
$ producer = $ this ->createProducerMock ();
247
247
$ producer
248
248
->expects ($ this ->once ())
249
- ->method ('sendEvent ' )
249
+ ->method ('sendCommand ' )
250
250
;
251
251
252
252
$ processor = new JobProcessor ($ storage , $ producer );
@@ -316,7 +316,7 @@ public function testSuccessJobShouldUpdateJobWithSuccessStatusAndStopAtTime()
316
316
$ producer = $ this ->createProducerMock ();
317
317
$ producer
318
318
->expects ($ this ->once ())
319
- ->method ('sendEvent ' )
319
+ ->method ('sendCommand ' )
320
320
;
321
321
322
322
$ processor = new JobProcessor ($ storage , $ producer );
@@ -386,7 +386,7 @@ public function testFailJobShouldUpdateJobWithFailStatusAndStopAtTime()
386
386
$ producer = $ this ->createProducerMock ();
387
387
$ producer
388
388
->expects ($ this ->once ())
389
- ->method ('sendEvent ' )
389
+ ->method ('sendCommand ' )
390
390
;
391
391
392
392
$ processor = new JobProcessor ($ storage , $ producer );
@@ -456,7 +456,7 @@ public function testCancelJobShouldUpdateJobWithCancelStatusAndStoppedAtTimeAndS
456
456
$ producer = $ this ->createProducerMock ();
457
457
$ producer
458
458
->expects ($ this ->once ())
459
- ->method ('sendEvent ' )
459
+ ->method ('sendCommand ' )
460
460
;
461
461
462
462
$ processor = new JobProcessor ($ storage , $ producer );
0 commit comments