Skip to content

Commit 0acdc90

Browse files
author
Anton Evers
committed
Change unit test to match pull request result
1 parent 8b6178d commit 0acdc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public function testDispatchGenerate()
660660
$schedule->expects($this->any())->method('unsScheduleId')->willReturnSelf();
661661
$schedule->expects($this->any())->method('trySchedule')->willReturnSelf();
662662
$schedule->expects($this->any())->method('getCollection')->willReturn($this->_collection);
663-
$schedule->expects($this->exactly(1))->method('save')->willReturnSelf();
663+
$schedule->expects($this->atLeastOnce())->method('save')->willReturnSelf();
664664

665665
$this->_collection->addItem(new \Magento\Framework\DataObject());
666666
$this->_collection->addItem($schedule);

0 commit comments

Comments
 (0)