Skip to content

Commit 8fd3e8a

Browse files
author
Bomko, Alex(abomko)
committed
Merge pull request #434 from magento-nord/MAGETWO-50426
[Nord] BugFix
2 parents 1f52147 + 6158a5f commit 8fd3e8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Cron/Test/Unit/Observer/ProcessCronQueueObserverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,13 +642,14 @@ public function testMissedJobsCleanedInTime()
642642
];
643643

644644
// This item was scheduled 2 days ago
645+
/** @var \Magento\Cron\Model\Schedule|\PHPUnit_Framework_MockObject_MockObject $schedule1 */
645646
$schedule1 = $this->getMockBuilder(
646647
'Magento\Cron\Model\Schedule'
647648
)->disableOriginalConstructor()->setMethods(
648649
['getExecutedAt', 'getScheduledAt', 'getStatus', 'delete', '__wakeup']
649650
)->getMock();
650651
$schedule1->expects($this->any())->method('getExecutedAt')->will($this->returnValue(null));
651-
$schedule1->expects($this->any())->method('getScheduledAt')->will($this->returnValue('-2 day -1 hour'));
652+
$schedule1->expects($this->any())->method('getScheduledAt')->will($this->returnValue('-2 day -2 hour'));
652653
$schedule1->expects($this->any())->method('getStatus')->will($this->returnValue(Schedule::STATUS_MISSED));
653654
//we expect this job be deleted from the list
654655
$schedule1->expects($this->once())->method('delete')->will($this->returnValue(true));

0 commit comments

Comments
 (0)