File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Cron/Test/Unit/Observer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,8 @@ public function testDispatchExceptionTooLate()
354
354
*/
355
355
public function testDispatchExceptionNoCallback ()
356
356
{
357
- $ exceptionMessage = 'No callbacks found ' ;
357
+ $ jobName = 'test_job1 ' ;
358
+ $ exceptionMessage = 'No callbacks found for cron job ' . $ jobName ;
358
359
$ exception = new \Exception (__ ($ exceptionMessage ));
359
360
360
361
$ dateScheduledAt = date ('Y-m-d H:i:s ' , $ this ->time - 86400 );
@@ -383,7 +384,7 @@ public function testDispatchExceptionNoCallback()
383
384
384
385
$ this ->loggerMock ->expects ($ this ->once ())->method ('critical ' )->with ($ exception );
385
386
386
- $ jobConfig = ['test_group ' => [' test_job1 ' => ['instance ' => 'Some_Class ' ]]];
387
+ $ jobConfig = ['test_group ' => [$ jobName => ['instance ' => 'Some_Class ' ]]];
387
388
388
389
$ this ->_config ->expects ($ this ->exactly (2 ))->method ('getJobs ' )->will ($ this ->returnValue ($ jobConfig ));
389
390
You can’t perform that action at this time.
0 commit comments