Skip to content

Commit 7560bc3

Browse files
committed
First cron run may fail when no Group provided.
1 parent c589521 commit 7560bc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,10 @@ private function notifyCronFinished(array $cronGroups = [])
601601
*/
602602
private function getLastCronExecution(array $cronGroups = [])
603603
{
604+
if (empty($this->cronExecution)) {
605+
return 0;
606+
}
607+
604608
if (empty($cronGroups)) {
605609
return (int)max($this->cronExecution);
606610
}
@@ -1060,7 +1064,7 @@ public function getSecret($key)
10601064
/**
10611065
* Waits proper amount of time to perform Cron execution
10621066
*
1063-
* @param string $cronGroups
1067+
* @param array $cronGroups
10641068
* @param integer $timeout
10651069
* @param string $arguments
10661070
* @return string

0 commit comments

Comments
 (0)