Skip to content

Commit 5c79a9e

Browse files
committed
Fix Unit Test.
1 parent d4d1553 commit 5c79a9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Crontab/Test/Unit/CrontabManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,13 @@ public function saveTasksDataProvider(): array
378378
],
379379
[
380380
'tasks' => [
381-
['command' => '{magentoRoot}run.php % cron:run | grep -v "Ran \'jobs\' by schedule"$']
381+
['command' => '{magentoRoot}run.php mysqldump db > db-$(date +%F).sql']
382382
],
383383
'content' => '* * * * * /bin/php /var/www/cron.php',
384384
'contentToSave' => '* * * * * /bin/php /var/www/cron.php' . PHP_EOL
385385
. CrontabManagerInterface::TASKS_BLOCK_START . ' ' . hash("sha256", BP) . PHP_EOL
386386
. '* * * * * ' . PHP_BINARY . ' /var/www/magento2/run.php'
387-
. ' %% cron:run | grep -v \"Ran \'jobs\' by schedule\"\$' . PHP_EOL
387+
. ' mysqldump db > db-\$(date +%%F).sql' . PHP_EOL
388388
. CrontabManagerInterface::TASKS_BLOCK_END . ' ' . hash("sha256", BP) . PHP_EOL,
389389
],
390390
];

0 commit comments

Comments
 (0)