Skip to content

Commit 4479042

Browse files
author
Eugene Tulika
committed
MAGETWO-34526: Process GitHub PR#1052
1 parent 78ac36f commit 4479042

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/code/Magento/Cron/Test/Unit/Model/ObserverTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Cron\Test\Unit\Model;
7+
78
use Magento\Cron\Model\Schedule;
9+
810
/**
911
* Class \Magento\Cron\Test\Unit\Model\ObserverTest
1012
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -623,11 +625,9 @@ public function testMissedJobsCleanedInTime()
623625
)->getMock();
624626
$schedule1->expects($this->any())->method('getExecutedAt')->will($this->returnValue(null));
625627
$schedule1->expects($this->any())->method('getScheduledAt')->will($this->returnValue('-2 day -1 hour'));
626-
$schedule1->expects($this->any())->method('getStatus')->will(
627-
$this->returnValue(Schedule::STATUS_MISSED));
628+
$schedule1->expects($this->any())->method('getStatus')->will($this->returnValue(Schedule::STATUS_MISSED));
628629
//we expect this job be deleted from the list
629-
$schedule1->expects($this->once())->method('delete')->will(
630-
$this->returnValue(true));
630+
$schedule1->expects($this->once())->method('delete')->will($this->returnValue(true));
631631

632632
// This item was scheduled 1 day ago
633633
$schedule2 = $this->getMockBuilder(
@@ -637,8 +637,7 @@ public function testMissedJobsCleanedInTime()
637637
)->getMock();
638638
$schedule2->expects($this->any())->method('getExecutedAt')->will($this->returnValue(null));
639639
$schedule2->expects($this->any())->method('getScheduledAt')->will($this->returnValue('-1 day'));
640-
$schedule2->expects($this->any())->method('getStatus')->will(
641-
$this->returnValue(Schedule::STATUS_MISSED));
640+
$schedule2->expects($this->any())->method('getStatus')->will($this->returnValue(Schedule::STATUS_MISSED));
642641
//we don't expect this job be deleted from the list
643642
$schedule2->expects($this->never())->method('delete');
644643

0 commit comments

Comments
 (0)